diff options
Diffstat (limited to 'src/plugins/cpptools/cpppointerdeclarationformatter.cpp')
| -rw-r--r-- | src/plugins/cpptools/cpppointerdeclarationformatter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cpppointerdeclarationformatter.cpp b/src/plugins/cpptools/cpppointerdeclarationformatter.cpp index 853e563424..82df823af1 100644 --- a/src/plugins/cpptools/cpppointerdeclarationformatter.cpp +++ b/src/plugins/cpptools/cpppointerdeclarationformatter.cpp @@ -377,7 +377,7 @@ void PointerDeclarationFormatter::checkAndRewrite(DeclaratorAST *declarator, CHECK_R(symbol, "No symbol"); // Check for expanded tokens - for (unsigned token = tokenRange.start; token <= tokenRange.end; ++token) + for (int token = tokenRange.start; token <= tokenRange.end; ++token) CHECK_R(!tokenAt(token).expanded(), "Token is expanded"); Utils::ChangeSet::Range range(m_cppRefactoringFile->startOf(tokenRange.start), @@ -455,7 +455,7 @@ void PointerDeclarationFormatter::printCandidate(AST *ast) { #if DEBUG_OUTPUT QString tokens; - for (unsigned token = ast->firstToken(); token < ast->lastToken(); token++) + for (int token = ast->firstToken(); token < ast->lastToken(); token++) tokens += QString::fromLatin1(tokenAt(token).spell()) + QLatin1Char(' '); # ifdef __GNUC__ |
