Internals: Cleanup some string constructors. No functional change.

This commit is contained in:
Wilson Snyder
2022-08-30 01:02:39 -04:00
parent 6a5f77b278
commit ea55db7286
25 changed files with 80 additions and 73 deletions
+1 -1
View File
@@ -1083,7 +1083,7 @@ private:
nodep, "Argument for $display like statement is not constant");
break;
}
const string pformat = string("%") + pos[0];
const string pformat = std::string{"%"} + pos[0];
result += constp->num().displayed(nodep, pformat);
} else {
switch (tolower(pos[0])) {