Fix cppcheck 1.71 issues. No functional change intended.

This commit is contained in:
Wilson Snyder
2016-02-04 18:30:21 -05:00
parent d1acaea611
commit b488666c1e
7 changed files with 18 additions and 10 deletions
+3 -2
View File
@@ -102,7 +102,8 @@ string AstNode::encodeName(const string& namein) {
} else if (pos[0]=='_') {
if (pos[1]=='_') {
out += "_"; out += "__05F"; // hex(_) = 0x5F
pos++;
++pos;
if (pos==namein.end()) break;
} else {
out += pos[0];
}
@@ -198,7 +199,7 @@ string AstNode::prettyName(const string& namein) {
}
else {
pretty += pos[0];
pos++;
++pos;
}
}
if (pretty.substr(0,4) == "TOP.") pretty.replace(0,4,"");