Kaydet (Commit) a599f5b4 authored tarafından jailletc36's avatar jailletc36 Kaydeden (comit) Radek Doulík

cppCheck: Unused variable and Redundant assignment

Change-Id: I67084c1cb9dc23eb77787d2a6d57a5b70126873c
Signed-off-by: 's avatarjailletc36 <christophe.jaillet@wanadoo.fr>
Reviewed-on: https://gerrit.libreoffice.org/1005Reviewed-by: 's avatarRadek Doulík <rodo@novell.com>
Tested-by: 's avatarRadek Doulík <rodo@novell.com>
üst cdea8177
...@@ -1147,7 +1147,6 @@ void SfxFilterContainer::ReadFilters_Impl( sal_Bool bUpdate ) ...@@ -1147,7 +1147,6 @@ void SfxFilterContainer::ReadFilters_Impl( sal_Bool bUpdate )
SfxFilter* pFilter; SfxFilter* pFilter;
for ( size_t i = 0, n = rList.size(); i < n; ++i ) for ( size_t i = 0, n = rList.size(); i < n; ++i )
{ {
pFilter = NULL;
pFilter = rList[ i ]; pFilter = rList[ i ];
pFilter->nFormatType |= SFX_FILTER_NOTINSTALLED; pFilter->nFormatType |= SFX_FILTER_NOTINSTALLED;
} }
......
...@@ -2073,7 +2073,6 @@ SfxPopupMenuManager* SfxDispatcher::Popup( sal_uInt16 nConfigId,Window *pWin, co ...@@ -2073,7 +2073,6 @@ SfxPopupMenuManager* SfxDispatcher::Popup( sal_uInt16 nConfigId,Window *pWin, co
SfxDispatcher &rDisp = *SFX_APP()->GetDispatcher_Impl(); SfxDispatcher &rDisp = *SFX_APP()->GetDispatcher_Impl();
sal_uInt16 nShLevel = 0; sal_uInt16 nShLevel = 0;
SfxShell *pSh; SfxShell *pSh;
nShLevel=0;
if ( rDisp.pImp->bQuiet ) if ( rDisp.pImp->bQuiet )
{ {
...@@ -2101,7 +2100,6 @@ void SfxDispatcher::ExecutePopup( sal_uInt16 nConfigId, Window *pWin, const Poin ...@@ -2101,7 +2100,6 @@ void SfxDispatcher::ExecutePopup( sal_uInt16 nConfigId, Window *pWin, const Poin
sal_uInt16 nShLevel = 0; sal_uInt16 nShLevel = 0;
SfxShell *pSh; SfxShell *pSh;
nShLevel=0;
if ( rDisp.pImp->bQuiet ) if ( rDisp.pImp->bQuiet )
{ {
nConfigId = 0; nConfigId = 0;
......
...@@ -2321,11 +2321,6 @@ CustomPropertiesControl::CustomPropertiesControl( Window* pParent, const ResId& ...@@ -2321,11 +2321,6 @@ CustomPropertiesControl::CustomPropertiesControl( Window* pParent, const ResId&
m_aVertScroll.SetPageSize( nVisibleEntries - 1 ); m_aVertScroll.SetPageSize( nVisibleEntries - 1 );
m_aVertScroll.SetVisibleSize( nVisibleEntries ); m_aVertScroll.SetVisibleSize( nVisibleEntries );
Point aPos = m_aHeaderBar.GetPosPixel();
Size aSize = m_aHeaderBar.GetSizePixel();
aPos = m_aVertScroll.GetPosPixel();
aSize = m_aVertScroll.GetSizePixel();
Link aScrollLink = LINK( this, CustomPropertiesControl, ScrollHdl ); Link aScrollLink = LINK( this, CustomPropertiesControl, ScrollHdl );
m_aVertScroll.SetScrollHdl( aScrollLink ); m_aVertScroll.SetScrollHdl( aScrollLink );
} }
......
...@@ -200,11 +200,6 @@ SfxSecurityPage_Impl::SfxSecurityPage_Impl( SfxSecurityPage &rTabPage, const Sfx ...@@ -200,11 +200,6 @@ SfxSecurityPage_Impl::SfxSecurityPage_Impl( SfxSecurityPage &rTabPage, const Sfx
m_bEndRedliningWarningDone ( false ) m_bEndRedliningWarningDone ( false )
{ {
m_aChangeProtectionPB.SetText( m_aProtectSTR ); m_aChangeProtectionPB.SetText( m_aProtectSTR );
// adjust button width if necessary
long nBtnTextWidth = 0;
long nTemp = m_aChangeProtectionPB.GetCtrlTextWidth( m_aChangeProtectionPB.GetText() );
if (nTemp > nBtnTextWidth)
nBtnTextWidth = nTemp;
// force toggle hdl called before visual change of checkbox // force toggle hdl called before visual change of checkbox
m_aRecordChangesCB.SetStyle( m_aRecordChangesCB.GetStyle() | WB_EARLYTOGGLE ); m_aRecordChangesCB.SetStyle( m_aRecordChangesCB.GetStyle() | WB_EARLYTOGGLE );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment