Commit 82b3cb40 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau

Merge branch '5.4'

parents 5a4e9b05 69e1ed66
......@@ -141,7 +141,7 @@ QStringList scanIncludePaths( const QualifiedIdentifier& identifier, const KDeve
int sharedPathLevel(const QString& a, const QString& b)
{
int shared = -1;
for(auto x = a.begin(), y = b.begin(); *x == *y && x != a.end() && y != b.end() ; ++x, ++y ) {
for (auto x = a.begin(), y = b.begin(); x != a.end() && y != b.end() && *x == *y; ++x, ++y) {
if( *x == QDir::separator() ) {
++shared;
}
......
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