mirror of
https://github.com/taglib/taglib.git
synced 2026-06-14 02:09:27 -04:00
Inspection: Variable can be moved to init statement
This commit is contained in:
@@ -119,8 +119,7 @@ namespace
|
||||
#endif
|
||||
|
||||
String ext;
|
||||
const int pos = s.rfind(".");
|
||||
if(pos != -1)
|
||||
if(const int pos = s.rfind("."); pos != -1)
|
||||
ext = s.substr(pos + 1).upper();
|
||||
|
||||
// If this list is updated, the method defaultFileExtensions() should also be
|
||||
|
||||
Reference in New Issue
Block a user