- cppcheck round #2 cleanup

This commit is contained in:
Mark Vejvoda
2012-09-22 20:37:42 +00:00
parent 1c211e4ce6
commit e0bf4df646
10 changed files with 26 additions and 26 deletions

View File

@@ -128,7 +128,7 @@ float FontMetrics::getTextWidth(const string &str) {
else {
vector<string> lineTokens;
Tokenize(str,lineTokens,"\n");
if(lineTokens.size() > 0) {
if(lineTokens.empty() == false) {
for(unsigned int i = 0; i < lineTokens.size(); ++i) {
string currentStr = lineTokens[i];
if(currentStr.length() > longestLine.length()) {