Internals: Cleanup temp string inserts for clang-tidy. No functional change.

This commit is contained in:
Wilson Snyder
2018-10-14 11:10:11 -04:00
parent 595419b370
commit b7e4083e70
7 changed files with 12 additions and 7 deletions
+2 -2
View File
@@ -556,8 +556,8 @@ string V3Number::displayed(FileLine*fl, const string& vformat) const {
int intfmtsize = atoi(fmtsize.c_str());
bool zeropad = fmtsize.length()>0 && fmtsize[0]=='0';
while ((int)(str.length()) < intfmtsize) {
if (zeropad) str = "0"+str;
else str = " "+str;
if (zeropad) str.insert(0, "0");
else str.insert(0, " ");
}
return str;
}