Commit 9ebbac63 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed warning about signed/unsigned comparisson.

Reviewed-by: Leandro Melo
parent f1de90c8
......@@ -55,7 +55,7 @@ QString findDefinitionsLocation()
// Some wild guesses.
QDir dir;
for (unsigned i = 0; i < kateSyntaxCount; ++i) {
for (int i = 0; i < kateSyntaxCount; ++i) {
QStringList paths;
paths << QLatin1String("/usr") + kateSyntax[i]
<< QLatin1String("/usr/local") + kateSyntax[i]
......@@ -77,7 +77,7 @@ QString findDefinitionsLocation()
process.waitForFinished(5000);
QString output = QString::fromLocal8Bit(process.readAllStandardOutput());
output.remove(QLatin1Char('\n'));
for (unsigned i = 0; i < kateSyntaxCount; ++i) {
for (int i = 0; i < kateSyntaxCount; ++i) {
dir.setPath(output + kateSyntax[i]);
if (dir.exists())
return dir.path();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment