UI/importers: Fix compiler warning

Fix comparison of integers of different signs.
Use string::npos instead of -1
master
mvji 2022-04-19 20:46:03 +02:00 committed by Jim
parent c6029ac658
commit a427d69d76
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ OBSImporterFiles SLImporter::FindFiles()
size_t pos = name.find_last_of(".json");
size_t end_pos = name.size() - 1;
if (pos != -1 && pos == end_pos) {
if (pos != string::npos && pos == end_pos) {
string str = dst + name;
res.push_back(str);
}