Fix some more compiler warnings

This commit is contained in:
Lawrence Lee
2024-11-18 23:42:33 -08:00
parent 721d664136
commit 29a344aef1
6 changed files with 58 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ Cairo::RefPtr<Cairo::ImageSurface> RTScalable::loadSurfaceFromIcon(const Glib::u
// Create surface from corresponding icon
const auto pos = iconPath.find_last_of('.');
if (pos >= 0 && pos < iconPath.length()) {
if (pos < iconPath.length()) {
const auto fext = iconPath.substr(pos + 1, iconPath.length()).lowercase();
// Case where iconPath is a PNG file