diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-22 06:33:39 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-08-22 07:14:58 +0200 |
commit | af14ad6c20f9e8422a1016b650c7d83a5cc7dc00 (patch) | |
tree | 8e1784a68478f66c92e3849088710a39db1c2ff9 | |
parent | 8b5dc58a3e36370c7469e341ac0400cebd7e131c (diff) |
cppcheck: fix redundant assignments
Change-Id: Ib0c2f0c2b67f40ce75469b434a67c62187aca93d
-rw-r--r-- | filter/source/t602/t602filter.cxx | 4 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwppara.cxx | 3 | ||||
-rw-r--r-- | sc/source/core/opencl/openclwrapper.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/menu/virtmenu.cxx | 5 |
4 files changed, 5 insertions, 8 deletions
diff --git a/filter/source/t602/t602filter.cxx b/filter/source/t602/t602filter.cxx index 8f0152562c62..5dc131259ffd 100644 --- a/filter/source/t602/t602filter.cxx +++ b/filter/source/t602/t602filter.cxx @@ -919,8 +919,6 @@ Locale SAL_CALL T602ImportFilterDialog::getLocale() sal_Bool T602ImportFilterDialog::OptionsDlg() { - sal_Bool ret = sal_False; - Any any; #define _propInt(_prop,_nam,_val) \ any <<= (sal_Int32)_val;\ @@ -1079,7 +1077,7 @@ sal_Bool T602ImportFilterDialog::OptionsDlg() dialog->setVisible( false ); dialog->createPeer( xToolkit, NULL ); - ret = ( dialog->execute() != 0 ); + sal_Bool ret = ( dialog->execute() != 0 ); if ( ret ) { sal_Int16 tt = 0; diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx index 5628772dfdef..12d647b366ef 100644 --- a/lotuswordpro/source/filter/lwppara.cxx +++ b/lotuswordpro/source/filter/lwppara.cxx @@ -316,8 +316,7 @@ sal_Bool LwpPara::RegisterMasterPage(XFParaStyle* pBaseStyle) //if pagelayout is modified, register the pagelayout if(pStory && pStory->IsPMModified()) { - sal_Bool bNewSection = sal_False; - bNewSection = pStory->IsNeedSection(); + sal_Bool bNewSection = pStory->IsNeedSection(); LwpPageLayout* pLayout = pStory->GetCurrentLayout(); if(bNewSection) { diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx index 055771704c37..1179f0f1e1fb 100644 --- a/sc/source/core/opencl/openclwrapper.cxx +++ b/sc/source/core/opencl/openclwrapper.cxx @@ -848,6 +848,7 @@ int OpenclDevice::InitOpenclRunEnv( GPUEnv *gpuInfo ) } clStatus = clGetCommandQueueInfo( gpuInfo->mpCmdQueue, CL_QUEUE_THREAD_HANDLE_AMD, 0, NULL, NULL ); + CHECK_OPENCL( clStatus, "GetCommandQueueInfo" ); // Check device extensions for double type size_t aDevExtInfoSize = 0; diff --git a/sfx2/source/menu/virtmenu.cxx b/sfx2/source/menu/virtmenu.cxx index 0d04debf6e60..fbc4c6077cb1 100644 --- a/sfx2/source/menu/virtmenu.cxx +++ b/sfx2/source/menu/virtmenu.cxx @@ -636,11 +636,10 @@ bool SfxVirtualMenu::Bind_Impl( Menu *pMenu ) for ( sal_uInt16 nPos = 0; nPos < nCount; ++nPos ) { - // found the Sub-Menu in question? - bool bFound = false; sal_uInt16 nSID = pSVMenu->GetItemId(nPos); SfxMenuControl &rCtrl = pItems[nPos]; - bFound = pSVMenu->GetPopupMenu(nSID) == pMenu; + // found the Sub-Menu in question? + bool bFound = pSVMenu->GetPopupMenu(nSID) == pMenu; SfxVirtualMenu *pSubMenu = rCtrl.GetPopupMenu(); if ( bFound ) |