diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-13 09:56:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-13 10:17:26 +0000 |
commit | 8325fcb56d014c12f35808ae6ad17f68b7a1cdd2 (patch) | |
tree | 295fe60b2a4926f1f76e734a59bd08d6601ec386 /sal | |
parent | 5a616ca96c41b1e3d6dc2bca370f0797dfef7511 (diff) |
cppcheck: noExplicitConstructor
Change-Id: Ife26f55c28c4631aec4ba4105225bfca72da8bff
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/process/osl_process.cxx | 2 | ||||
-rw-r--r-- | sal/workben/measure_oustrings.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/qa/osl/process/osl_process.cxx b/sal/qa/osl/process/osl_process.cxx index 7b29a84c667b..59bd74f44073 100644 --- a/sal/qa/osl/process/osl_process.cxx +++ b/sal/qa/osl/process/osl_process.cxx @@ -99,7 +99,7 @@ class exclude : public std::unary_function<OString, bool> { public: - exclude(const string_container_t& exclude_list) + explicit exclude(const string_container_t& exclude_list) { string_container_t::const_iterator iter = exclude_list.begin(); string_container_t::const_iterator iter_end = exclude_list.end(); diff --git a/sal/workben/measure_oustrings.cxx b/sal/workben/measure_oustrings.cxx index 0a4eb45b09f2..eeca8ccf2906 100644 --- a/sal/workben/measure_oustrings.cxx +++ b/sal/workben/measure_oustrings.cxx @@ -54,7 +54,7 @@ private: const char *m_pMessage; sal_uInt32 m_nStartTime, m_nEndTime; public: - TimerMeasure(const char *pMessage) + explicit TimerMeasure(const char *pMessage) : m_pMessage(pMessage) { m_nStartTime = osl_getGlobalTimer(); |