diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-14 14:07:42 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-01-14 14:07:42 +0300 |
commit | 05ead45e71916c5763c5c4b6375e2ca6838f3995 (patch) | |
tree | c279bd4aacfb31758720ffbaf5aaf62022574a52 /moses/Parameter.h | |
parent | 91cb549ccf09fc33122f3d531f47c38ad0e99b3d (diff) |
beautify
Diffstat (limited to 'moses/Parameter.h')
-rw-r--r-- | moses/Parameter.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/moses/Parameter.h b/moses/Parameter.h index 9a290f7c4..c6b08dd85 100644 --- a/moses/Parameter.h +++ b/moses/Parameter.h @@ -114,15 +114,13 @@ public: void Save(const std::string path); template<typename T> - void SetParameter(T &var, const std::string &name, const T &defaultValue) const - { - const PARAM_VEC *params = GetParam(name); - if (params && params->size()) { - var = Scan<T>( params->at(0)); - } - else { - var = defaultValue; - } + void SetParameter(T &var, const std::string &name, const T &defaultValue) const { + const PARAM_VEC *params = GetParam(name); + if (params && params->size()) { + var = Scan<T>( params->at(0)); + } else { + var = defaultValue; + } } }; |