From 30600bf1a3a39130d9a12a58f37a867a7bdb9f6e Mon Sep 17 00:00:00 2001 From: Yutetsu TAKATSUKASA Date: Fri, 3 Jul 2020 14:16:43 -0400 Subject: [PATCH] Internals: Add const --- src/V3Options.cpp | 2 +- src/V3Options.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Options.cpp b/src/V3Options.cpp index 0dd0d337d..f87ba3560 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -294,7 +294,7 @@ void V3Options::addForceInc(const string& filename) { m_forceIncs.push_back(file void V3Options::addArg(const string& arg) { m_impp->m_allArgs.push_back(arg); } -string V3Options::allArgsString() { +string V3Options::allArgsString() const { string out; for (std::list::const_iterator it = m_impp->m_allArgs.begin(); it != m_impp->m_allArgs.end(); ++it) { diff --git a/src/V3Options.h b/src/V3Options.h index 54478fe49..0c3830bcf 100644 --- a/src/V3Options.h +++ b/src/V3Options.h @@ -598,7 +598,7 @@ public: // METHODS (from main) static string version(); static string argString(int argc, char** argv); ///< Return list of arguments as simple string - string allArgsString(); ///< Return all passed arguments as simple string + string allArgsString() const; ///< Return all passed arguments as simple string void bin(const string& flag) { m_bin = flag; } void parseOpts(FileLine* fl, int argc, char** argv); void parseOptsList(FileLine* fl, const string& optdir, int argc, char** argv);