diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-11 02:05:51 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-11-11 04:08:05 +0300 |
commit | 9826599cb089611f78532e583acb467572868732 (patch) | |
tree | bf9d0844287da6d25d58cdcc817e7563a053bd64 /moses/Parameter.h | |
parent | d7278293877afe443a8668d5abea25bb37542c6e (diff) |
Enforce const-ness of command line arguments; bug fix in mosesserver.cpp.
Diffstat (limited to 'moses/Parameter.h')
-rw-r--r-- | moses/Parameter.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/moses/Parameter.h b/moses/Parameter.h index bc3415245..32065885b 100644 --- a/moses/Parameter.h +++ b/moses/Parameter.h @@ -57,8 +57,9 @@ protected: std::map<std::string, std::vector<float> > m_weights; - std::string FindParam(const std::string ¶mSwitch, int argc, char* argv[]); - void OverwriteParam(const std::string ¶mSwitch, const std::string ¶mName, int argc, char* argv[]); + std::string FindParam(const std::string ¶mSwitch, int argc, char const* argv[]); + void OverwriteParam(const std::string ¶mSwitch, const std::string ¶mName, + int argc, char const* argv[]); bool ReadConfigFile(const std::string &filePath ); bool FilesExist(const std::string ¶mName, int fieldNo, std::vector<std::string> const& fileExtension=std::vector<std::string>(1,"")); bool isOption(const char* token); @@ -113,7 +114,7 @@ protected: public: Parameter(); ~Parameter(); - bool LoadParam(int argc, char* argv[]); + bool LoadParam(int argc, char const* argv[]); bool LoadParam(const std::string &filePath); void Explain(); |