Internals: Use standard 'result' name for return variable. No functional change.

This commit is contained in:
Wilson Snyder
2023-04-08 22:11:28 -04:00
parent 7ae0c5d546
commit fff0eb5d88
11 changed files with 98 additions and 98 deletions
+5 -5
View File
@@ -161,7 +161,7 @@ string V3Os::filenameNonExt(const string& filename) VL_PURE {
}
string V3Os::filenameSubstitute(const string& filename) {
string out;
string result;
// cppcheck-has-bug-suppress unusedLabel
enum : uint8_t { NONE, PAREN, CURLY } brackets = NONE;
for (string::size_type pos = 0; pos < filename.length(); ++pos) {
@@ -188,20 +188,20 @@ string V3Os::filenameSubstitute(const string& filename) {
string envvalue;
if (!envvar.empty()) envvalue = getenvStr(envvar, "");
if (!envvalue.empty()) {
out += envvalue;
result += envvalue;
if (brackets == NONE) {
pos = endpos;
} else {
pos = endpos + 1;
}
} else {
out += filename[pos]; // *pos == '$'
result += filename[pos]; // *pos == '$'
}
} else {
out += filename[pos];
result += filename[pos];
}
}
return out;
return result;
}
string V3Os::filenameRealPath(const string& filename) {