summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2011-01-11 12:58:22 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-01-11 12:58:22 (GMT)
commit5819280b42c32233e9db0981f143704995957ef4 (patch)
tree4c85ffcd8d7ccd33c87d3f9e24a3bd92eb16f933
parentebf988356f9b8aee4968250dc1f21e841c6e5dbf (diff)
downloadQt-5819280b42c32233e9db0981f143704995957ef4.zip
Qt-5819280b42c32233e9db0981f143704995957ef4.tar.gz
Qt-5819280b42c32233e9db0981f143704995957ef4.tar.bz2
fix 'QChar::QChar(char)' is deprecated
Merge-request: 955 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
-rw-r--r--src/gui/dialogs/qfiledialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/dialogs/qfiledialog.cpp b/src/gui/dialogs/qfiledialog.cpp
index 9509330..f7fa705 100644
--- a/src/gui/dialogs/qfiledialog.cpp
+++ b/src/gui/dialogs/qfiledialog.cpp
@@ -3311,7 +3311,7 @@ QString QFSCompleter::pathFromIndex(const QModelIndex &index) const
if (currentLocation == QDir::separator())
return path.mid(currentLocation.length());
#endif
- if (currentLocation.endsWith('/'))
+ if (currentLocation.endsWith(QLatin1Char('/')))
return path.mid(currentLocation.length());
else
return path.mid(currentLocation.length()+1);