diff options
author | Zdibák Zoltán <zdibakzoltan@gmail.com> | 2018-11-10 22:05:34 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2018-11-11 09:19:23 +0100 |
commit | 85d959092ce9114941bba9d1cb49335e711677d1 (patch) | |
tree | 2bfd5f40b63c308351c2afda6bf8dd06324ddec4 | |
parent | e219d868fda704f58f6a980c29b8827cde87ea65 (diff) |
cppCheck redundantAssignment variable bSuccess
Change-Id: Ifacc27284201f74da7b4693a74d40e83ffc66408
Reviewed-on: https://gerrit.libreoffice.org/63251
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | desktop/source/lib/init.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 450cd0f1ad78..676afca7923f 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -4365,7 +4365,6 @@ static void lo_destroy(LibreOfficeKit* pThis) { SolarMutexClearableGuard aGuard; - bool bSuccess = false; LibLibreOffice_Impl* pLib = static_cast<LibLibreOffice_Impl*>(pThis); gImpl = nullptr; @@ -4375,7 +4374,7 @@ static void lo_destroy(LibreOfficeKit* pThis) uno::Reference <frame::XDesktop2> xDesktop = frame::Desktop::create ( ::comphelper::getProcessComponentContext() ); // FIXME: the terminate() call here is a no-op because it detects // that LibreOfficeKit::isActive() and then returns early! - bSuccess = xDesktop.is() && xDesktop->terminate(); + bool bSuccess = xDesktop.is() && xDesktop->terminate(); if (!bSuccess) { |