summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-03-04 09:31:42 +0100
committerhjk <hjk@qt.io>2019-03-04 12:17:43 +0000
commitd596d72ae8fdb1e936eafadd94004cdea3b4ab64 (patch)
tree731b146e926e543a6a93394710d28ddb85485d9d /src/app
parent50eb4d183ccb526874cefe73c7f4c2129769aa4a (diff)
downloadqbs-d596d72ae8fdb1e936eafadd94004cdea3b4ab64.tar.gz
Fix some warnings
None of them really necessary or even desirable to fix, but... tools/launcherinterface.cpp:114:80: warning: ‘void QProcess::finished(int)’ is deprecated: Use QProcess::finished(int, QProcess::ExitStatus) instead [-Wdeprecated-declarations] api/projectdata.cpp: In function ‘QString qbs::mapToString(const QVariantMap&, const QString&)’: api/projectdata.cpp:882:15: warning: ‘void qSort(Container&) [with Container = QStringList]’ is deprecated: Use std::sort [-Wdeprecated-declarations] parser/qmljsparser.cpp: In member function ‘void QbsQmlJS::Parser::reallocateStack()’: parser/qmljsparser.cpp:72:104: warning: ‘void* realloc(void*, size_t)’ moving an object of non-trivially copyable type ‘class QStringRef’; use ‘new’ and ‘delete’ instead [-Wclass-memaccess] etc. The QStringRef is the only one theoretically applicable, but isn't in practice given the current implementation. Change-Id: Idb2a03e3fd096b6ad428615f81266f952d2a8d95 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/qbs/status.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/qbs/status.cpp b/src/app/qbs/status.cpp
index 79a75c673..3dc540ff5 100644
--- a/src/app/qbs/status.cpp
+++ b/src/app/qbs/status.cpp
@@ -145,7 +145,7 @@ int printStatus(const ProjectData &project)
<< " (" << group.location().filePath() << ":"
<< group.location().line() << ")";
QStringList sourceFiles = group.allFilePaths();
- qSort(sourceFiles);
+ std::sort(sourceFiles.begin(), sourceFiles.end());
for (const QString &sourceFile : qAsConst(sourceFiles)) {
if (!QFileInfo(sourceFile).exists())
missingFiles.push_back(sourceFile);