Fix various compiler warnings

Change-Id: I59db57e8501bbd0d0293ccce1b520df8acc07413
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2021-10-06 14:55:47 +02:00
parent ea8400a9ff
commit 38b97b404a
8 changed files with 14 additions and 11 deletions

View File

@@ -105,7 +105,7 @@ void ClangFormatFile::saveNewFormat()
// workaround: configurationAsText() add comment "# " before BasedOnStyle line
const int pos = style.find("# BasedOnStyle");
if (pos < style.size())
if (pos < int(style.size()))
style.erase(pos, 2);
m_filePath.writeFileContents(QByteArray::fromStdString(style));
}