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:
Thunderforge 2021-05-10 22:44:07 -05:00
parent caf382c19f
commit 339d347aea
9 changed files with 14 additions and 14 deletions

View file

@ -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);