diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-07 08:14:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-07 08:14:34 +0200 |
commit | 46791546a8aaef40eafc08e6e71b4b0785324564 (patch) | |
tree | 149c1b3d002404366ed7a410af8e82f4b51778c3 /shell/source/tools | |
parent | 6343754e310a589cb49e2a1da0cd68472571179d (diff) |
cppcheck:noExplicitConstructor
Change-Id: I940714e303b905b756ba077eeda6c41746bd421f
Diffstat (limited to 'shell/source/tools')
-rw-r--r-- | shell/source/tools/lngconvex/lngconvex.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/source/tools/lngconvex/lngconvex.cxx b/shell/source/tools/lngconvex/lngconvex.cxx index 633baf182c0c..b14cf638d165 100644 --- a/shell/source/tools/lngconvex/lngconvex.cxx +++ b/shell/source/tools/lngconvex/lngconvex.cxx @@ -154,11 +154,11 @@ class iso_lang_identifier public: iso_lang_identifier() {}; - iso_lang_identifier(const OString& str) : + explicit iso_lang_identifier(const OString& str) : maBcp47(str) { } - iso_lang_identifier(const std::string& str) : + explicit iso_lang_identifier(const std::string& str) : maBcp47(str.c_str()) { } @@ -477,7 +477,7 @@ void inflate_rc_template_to_file( string_container_t::const_iterator rct_iter_end = rctmpl.end(); if (!rctmpl.empty()) - start_language_section(oi, iter->first); + start_language_section(oi, iso_lang_identifier(iter->first)); for ( /**/ ;rct_iter != rct_iter_end; ++rct_iter) { |