Skip to content
Permalink
Browse files

Fix build against QT 5.5 / Ubuntu 16.04

Fix issue introduced in 635f8ad
In QT 5.5, operator== (const QString&, char) is not defined.
  • Loading branch information
rouault committed Jun 22, 2018
1 parent 14a913e commit b8c11b8fc0ab450ba82d52f747d18852b1cfde28
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsfileutils.cpp
@@ -114,7 +114,7 @@ QString QgsFileUtils::findClosestExistingPath( const QString &path )
if ( visited.contains( parentPath ) )
return QString(); // break circular links

if ( parentPath.isEmpty() || parentPath == '.' )
if ( parentPath.isEmpty() || parentPath == QStringLiteral( "." ) )
return QString();
currentPath = QDir( parentPath );
visited << parentPath;
@@ -125,5 +125,5 @@ QString QgsFileUtils::findClosestExistingPath( const QString &path )
if ( res == QDir::currentPath() )
return QString(); // avoid default to binary folder if a filename alone is specified

return res == '.' ? QString() : res;
return res == QStringLiteral( "." ) ? QString() : res;
}

1 comment on commit b8c11b8

@rouault

This comment has been minimized.

Copy link
Contributor Author

@rouault rouault commented on b8c11b8 Jun 22, 2018

@nyalldawson FYI. I'm sorry to stick to ancient QT :-)

Please sign in to comment.
You can’t perform that action at this time.