forked from qt-creator/qt-creator
Fix various compiler warnings
Change-Id: I59db57e8501bbd0d0293ccce1b520df8acc07413 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user