From 4924e5afec12c1b0aa100b79e5a5830e5c15a8af Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Wed, 27 Sep 2023 13:07:16 +0200 Subject: [PATCH] CMakeProjectManager: Fix warnings Change-Id: I190646684a1cadbcc1a5906642ed48e9dd84ed88 Reviewed-by: Cristian Adam --- .../cmakeprojectmanager/cmakefilecompletionassist.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp b/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp index f8d7bb7a3b1..adf223e9a9b 100644 --- a/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp +++ b/src/plugins/cmakeprojectmanager/cmakefilecompletionassist.cpp @@ -158,7 +158,7 @@ static QList generateList(const QMap list; @@ -169,7 +169,7 @@ static QList generateList(const QMapsetDetail(CMakeToolManager::readFirstParagraphs(it.value())); item->setIcon(icon); list << item; - }; + } return list; } @@ -189,7 +189,7 @@ static int addFilePathItems(const AssistInterface *interface, const QString word = interface->textAt(startPos, interface->position() - startPos); FilePath baseDir = interface->filePath().absoluteFilePath().parentDir(); - const int lastSlashPos = word.lastIndexOf(QLatin1Char('/')); + const qsizetype lastSlashPos = word.lastIndexOf(QLatin1Char('/')); QString prefix = word; if (lastSlashPos != -1) { @@ -213,7 +213,7 @@ static int addFilePathItems(const AssistInterface *interface, return startPos; } -QPair getLocalFunctionsAndVariables(const QByteArray &content) +static QPair getLocalFunctionsAndVariables(const QByteArray &content) { cmListFile cmakeListFile; std::string errorString;