forked from qt-creator/qt-creator
Utils: Fix warning regarding incompatible signedness
Change-Id: I0b035ec53d65d636ace121d0d155249eebad2f8d Reviewed-by: Xavier BESSON <developer@xavi-b.fr> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -10,6 +10,8 @@
|
|||||||
#include <QTextCursor>
|
#include <QTextCursor>
|
||||||
#include <QTextDocument>
|
#include <QTextDocument>
|
||||||
|
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
namespace Utils {
|
namespace Utils {
|
||||||
|
|
||||||
CommentDefinition CommentDefinition::CppStyle = CommentDefinition("//", "/*", "*/");
|
CommentDefinition CommentDefinition::CppStyle = CommentDefinition("//", "/*", "*/");
|
||||||
@@ -176,7 +178,7 @@ QTextCursor unCommentSelection(const QTextCursor &cursorIn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const int singleLineLength = definition.singleLine.length();
|
const int singleLineLength = definition.singleLine.length();
|
||||||
unsigned int minTab = -1;
|
int minTab = INT_MAX;
|
||||||
if (definition.isAfterWhitespace && !doSingleLineStyleUncomment) {
|
if (definition.isAfterWhitespace && !doSingleLineStyleUncomment) {
|
||||||
for (QTextBlock block = startBlock; block != endBlock && minTab != 0; block = block.next()) {
|
for (QTextBlock block = startBlock; block != endBlock && minTab != 0; block = block.next()) {
|
||||||
QTextCursor c(block);
|
QTextCursor c(block);
|
||||||
|
Reference in New Issue
Block a user