Skip to content

Commit

Permalink
Fix build against QT 5.5 / Ubuntu 16.04
Browse files Browse the repository at this point in the history
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 b8c11b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsfileutils.cpp
Expand Up @@ -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;
Expand All @@ -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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.