CMakeProjectManager: Fix implicit conversion warnings

Amends a998269d7e

Change-Id: If6d0bda51030a39cb26ec1e270be2086a2bb54a1
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
Alessandro Portale
2023-09-21 11:29:23 +02:00
committed by Cristian Adam
parent f3c84c6d4f
commit 813342b957

View File

@@ -133,7 +133,7 @@ static QString unescape(const QString &s)
{
QString result;
int i = 0;
const int size = s.size();
const qsizetype size = s.size();
while (i < size) {
const QChar c = s.at(i);
if (c == '\\' && i < size - 1) {
@@ -164,7 +164,7 @@ void CMakeEditorWidget::findLinkAt(const QTextCursor &cursor,
const QString block = cursor.block().text();
// check if the current position is commented out
const int hashPos = block.indexOf(QLatin1Char('#'));
const qsizetype hashPos = block.indexOf(QLatin1Char('#'));
if (hashPos >= 0 && hashPos < column)
return processLinkCallback(link);