winrt: Fix ill-constructed loop

That loop could never have worked properly.
Identified by analyze compile switch.

Change-Id: I5e987dc9f5c57d3ffbcf054b7b417b506c02e7e1
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
bb10
Maurice Kalinowski 2016-11-15 13:09:01 +01:00
parent b39adf8945
commit 3e3b22adeb
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public:
}
firstDot = fileName.size();
for (int i = lastSeparator; i > fileName.size(); ++i) {
for (int i = lastSeparator; i < fileName.size(); ++i) {
if (fileName.at(i).unicode() == '.') {
firstDot = i;
break;