diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-11-26 19:41:25 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-11-26 19:41:25 +0300 |
commit | a2bb435a1a90f1d4165d6a080de474618fb13988 (patch) | |
tree | 4dfc52c3c6c12e403bc8e16205a4d514bd64a531 /moses/Parameter.h | |
parent | 4ca730a67cfa96b9e070aaa8fafbee84e9a362d5 (diff) |
make GetParam() a const method with no side effect
Diffstat (limited to 'moses/Parameter.h')
-rw-r--r-- | moses/Parameter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/moses/Parameter.h b/moses/Parameter.h index 7e5e75496..321596090 100644 --- a/moses/Parameter.h +++ b/moses/Parameter.h @@ -91,6 +91,7 @@ public: /** return a vector of strings holding the whitespace-delimited values on the ini-file line corresponding to the given parameter name */ const PARAM_VEC &GetParam(const std::string ¶mName); + const PARAM_VEC *GetParam2(const std::string ¶mName) const; /** check if parameter is defined (either in moses.ini or as switch) */ bool isParamSpecified(const std::string ¶mName) const { |