diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-11-24 21:23:59 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-11-24 22:46:19 +0100 |
commit | b9448acf3ce4c1c850a691fc33686fd5165b94d9 (patch) | |
tree | 4e7f9babc2fcbe1411363f5235741e2772a02068 /sal | |
parent | d2c9e289733df395b911a46c1028014f42e75f99 (diff) |
cppcheck: performing init in init list (oox, package, sal, sax)
Change-Id: I77e28f02516ab25ff6680970dc13d52cfa90eac1
Reviewed-on: https://gerrit.libreoffice.org/83620
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/process/osl_Thread.cxx | 3 | ||||
-rw-r--r-- | sal/qa/osl/process/osl_process.cxx | 3 | ||||
-rw-r--r-- | sal/qa/rtl/doublelock/rtl_doublelocking.cxx | 4 |
3 files changed, 4 insertions, 6 deletions
diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx index 3c9891b76e54..d551f471d989 100644 --- a/sal/qa/osl/process/osl_Thread.cxx +++ b/sal/qa/osl/process/osl_Thread.cxx @@ -263,9 +263,8 @@ class OCountThread : public Thread { ThreadSafeValue<sal_Int32> m_aFlag; public: - OCountThread() + OCountThread() : m_nWaitSec(0) { - m_nWaitSec = 0; t_print("new OCountThread thread %u!\n", static_cast<unsigned>(getIdentifier())); } sal_Int32 getValue() { return m_aFlag.getValue(); } diff --git a/sal/qa/osl/process/osl_process.cxx b/sal/qa/osl/process/osl_process.cxx index 104f9238eea6..4555a0d83394 100644 --- a/sal/qa/osl/process/osl_process.cxx +++ b/sal/qa/osl/process/osl_process.cxx @@ -161,10 +161,9 @@ public: // ctor Test_osl_executeProcess() : - env_param_(OUString("-env")) + env_param_(OUString("-env")), suCWD(getExecutablePath()) { parameters_[0] = env_param_.pData; - suCWD = getExecutablePath(); #if defined(_WIN32) suExecutableFileURL = suCWD + "/" "osl_process_child.exe"; diff --git a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx index 6f59e55e62cd..ef639423d774 100644 --- a/sal/qa/rtl/doublelock/rtl_doublelocking.cxx +++ b/sal/qa/rtl/doublelock/rtl_doublelocking.cxx @@ -64,9 +64,9 @@ class OGetThread : public osl::Thread public: OGetThread() :m_nOK(0), - m_nFails(0) + m_nFails(0), + m_sConstStr(CONST_TEST_STRING) { - m_sConstStr = CONST_TEST_STRING; } sal_Int32 getOK() { osl::MutexGuard g(m_mutex); return m_nOK; } |