Skip to content

Commit b8c11b8

Browse files
committed
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.
1 parent 14a913e commit b8c11b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/qgsfileutils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ QString QgsFileUtils::findClosestExistingPath( const QString &path )
114114
if ( visited.contains( parentPath ) )
115115
return QString(); // break circular links
116116

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

128-
return res == '.' ? QString() : res;
128+
return res == QStringLiteral( "." ) ? QString() : res;
129129
}

0 commit comments

Comments
 (0)