From 5819280b42c32233e9db0981f143704995957ef4 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Tue, 11 Jan 2011 13:58:22 +0100 Subject: fix 'QChar::QChar(char)' is deprecated Merge-request: 955 Reviewed-by: Olivier Goffart --- src/gui/dialogs/qfiledialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v0.12