[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [clazy] checks/level1: Fix wording (QString::at(0) == QString::left(1))
From: Christian Ehrlicher <Ch.Ehrlicher () gmx ! de>
Date: 2016-09-03 20:54:35
Message-ID: E1bgHxT-0003TQ-F8 () code ! kde ! org
[Download RAW message or body]
Git commit 0fa038606d375630f939bf10f72805176c8aea36 by Christian Ehrlicher.
Committed on 03/09/2016 at 20:53.
Pushed by chehrlic into branch 'master'.
Fix wording (QString::at(0) == QString::left(1))
REVIEW: 128820
M +1 -1 checks/level1/qstring-left.cpp
http://commits.kde.org/clazy/0fa038606d375630f939bf10f72805176c8aea36
diff --git a/checks/level1/qstring-left.cpp b/checks/level1/qstring-left.cpp
index b3883cb..51d3f82 100644
--- a/checks/level1/qstring-left.cpp
+++ b/checks/level1/qstring-left.cpp
@@ -55,7 +55,7 @@ void QStringLeft::VisitStmt(clang::Stmt *stmt)
if (value == 0) {
emitWarning(stmt, "QString::left(0) returns an empty string");
} else if (value == 1){
- emitWarning(stmt, "Use QString::at(0) instead of QString::left(0)");
+ emitWarning(stmt, "Use QString::at(0) instead of QString::left(1)");
}
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic