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
+4 -4
View File
@@ -467,13 +467,13 @@ string FileLine::warnContext() const {
}
string FileLine::warnContextParent() const VL_REQUIRES(V3Error::s().m_mutex) {
string out;
string result;
for (FileLine* parentFl = parent(); parentFl; parentFl = parentFl->parent()) {
if (parentFl->filenameIsGlobal()) break;
out += parentFl->warnOther() + "... note: In file included from "
+ parentFl->filebasename() + "\n";
result += parentFl->warnOther() + "... note: In file included from "
+ parentFl->filebasename() + "\n";
}
return out;
return result;
}
#ifdef VL_LEAK_CHECKS
std::unordered_set<FileLine*> fileLineLeakChecks;