Internals: Add const. No functional change.

This commit is contained in:
Wilson Snyder
2021-06-20 18:33:13 -04:00
parent ec4eb18846
commit 512fe0a2d1
87 changed files with 690 additions and 669 deletions
+3 -3
View File
@@ -95,7 +95,7 @@ protected:
// Preprocess
s_filterp = filterp;
string modfilename = preprocOpen(fl, s_filterp, modname, "", errmsg);
const string modfilename = preprocOpen(fl, s_filterp, modname, "", errmsg);
if (modfilename.empty()) return false;
// Set language standard up front
@@ -112,7 +112,7 @@ protected:
}
while (!s_preprocp->isEof()) {
string line = s_preprocp->getline();
const string line = s_preprocp->getline();
V3Parse::ppPushText(parsep, line);
}
return true;
@@ -138,7 +138,7 @@ private:
if (filename == "") {
// Allow user to put `defined names on the command line instead of filenames,
// then convert them properly.
string ppmodname = s_preprocp->removeDefines(modname);
const string ppmodname = s_preprocp->removeDefines(modname);
filename = v3Global.opt.filePath(fl, ppmodname, lastpath, errmsg);
}