mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Fixing performance-faster-string-find issues
This addresses the Clang Tidy check [performance-faster-string-find](https://clang.llvm.org/extra/clang-tidy/checks/performance-faster-string-find.html).
This commit is contained in:
parent
caf382c19f
commit
339d347aea
9 changed files with 14 additions and 14 deletions
|
@ -118,7 +118,7 @@ namespace Gui
|
|||
|
||||
void ImageButton::setImage(const std::string &image)
|
||||
{
|
||||
size_t extpos = image.find_last_of(".");
|
||||
size_t extpos = image.find_last_of('.');
|
||||
std::string imageNoExt = image.substr(0, extpos);
|
||||
|
||||
std::string ext = image.substr(extpos);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue