diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 44077baedf9b..75d1fb1a6941 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -2489,7 +2489,6 @@ void SvtFileDialog::InitSize() if ( !_pImp->_nFixDeltaHeight ) { // Fixgr"ossen errechnen und merken - Point aPnt = _pFileView->GetPosPixel(); long nBoxH = _pFileView->GetSizePixel().Height(); long nH = GetSizePixel().Height(); _pImp->_nFixDeltaHeight = nH - nBoxH; diff --git a/framework/source/classes/fwktabwindow.cxx b/framework/source/classes/fwktabwindow.cxx index 245a9f3de7ba..8d42a46655b2 100644 --- a/framework/source/classes/fwktabwindow.cxx +++ b/framework/source/classes/fwktabwindow.cxx @@ -194,8 +194,7 @@ void FwkTabPage::Resize() { if ( m_xPage.is () ) { - Size aSize = GetSizePixel (); - Point aPos = GetPosPixel (); + Size aSize = GetSizePixel(); m_xPage->setPosSize( 0, 0, aSize.Width()-1 , aSize.Height()-1, awt::PosSize::POSSIZE ); } diff --git a/framework/source/helper/actiontriggerhelper.cxx b/framework/source/helper/actiontriggerhelper.cxx index a5e0a1438a1e..74515b1eefa4 100644 --- a/framework/source/helper/actiontriggerhelper.cxx +++ b/framework/source/helper/actiontriggerhelper.cxx @@ -138,7 +138,6 @@ void InsertSubMenuItems( Menu* pSubMenu, USHORT& nItemId, Reference< XIndexConta OUString aHelpURL; Reference< XBitmap > xBitmap; Reference< XIndexContainer > xSubContainer; - sal_Bool bSpecialItemId = sal_False; USHORT nNewItemId = nItemId++; GetMenuItemAttributes( xPropSet, aLabel, aCommandURL, aHelpURL, xBitmap, xSubContainer ); @@ -153,7 +152,6 @@ void InsertSubMenuItems( Menu* pSubMenu, USHORT& nItemId, Reference< XIndexConta // command url but uses the item id as a unqiue identifier. These entries // got a special url during conversion from menu=>actiontriggercontainer. // Now we have to extract this special url and set the correct item id!!! - bSpecialItemId = sal_True; nNewItemId = (USHORT)aCommandURL.copy( nIndex+aSlotURL.getLength() ).toInt32(); pSubMenu->InsertItem( nNewItemId, aLabel ); } diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 33adc3361448..de4a84426f9f 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -4726,7 +4726,6 @@ throw (RuntimeException) RTL_LOGFILE_CONTEXT( aLog, "framework (cd100003) ::LayoutManager::hideElement" ); - sal_Bool bResult( sal_False ); sal_Bool bNotify( sal_False ); ::rtl::OUString aElementType; ::rtl::OUString aElementName; @@ -4755,7 +4754,6 @@ throw (RuntimeException) if ( pMenuBar ) { pMenuBar->SetDisplayable( sal_False ); - bResult = sal_True; bNotify = sal_True; } } @@ -4774,14 +4772,13 @@ throw (RuntimeException) implts_writeWindowStateData( m_aStatusBarAlias, m_aStatusBarElement ); doLayout(); bNotify = sal_True; - bResult = sal_True; } } } else if ( aElementType.equalsIgnoreAsciiCaseAscii( "progressbar" ) && aElementName.equalsIgnoreAsciiCaseAscii( "progressbar" )) { - bResult = bNotify = implts_hideProgressBar(); + bNotify = implts_hideProgressBar(); } else if ( aElementType.equalsIgnoreAsciiCaseAscii( "toolbar" )) { @@ -4806,7 +4803,6 @@ throw (RuntimeException) if ( xDockWindow.is() && !xDockWindow->isFloating() ) doLayout(); - bResult = sal_True; bNotify = sal_True; } // if ( xDockWindow.is() ) break; diff --git a/svx/source/dialog/measctrl.cxx b/svx/source/dialog/measctrl.cxx index cf8c560fd3fa..5e26a9d64116 100644 --- a/svx/source/dialog/measctrl.cxx +++ b/svx/source/dialog/measctrl.cxx @@ -66,7 +66,6 @@ SvxXMeasurePreview::SvxXMeasurePreview SetMapMode( aMapMode ); aSize = GetOutputSize(); - Rectangle aRect = Rectangle( Point(), aSize ); Point aPt1 = Point( aSize.Width() / 5, (long) ( aSize.Height() / 2 ) ); Point aPt2 = Point( aSize.Width() * 4 / 5, (long) ( aSize.Height() / 2 ) ); diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx index 18c045e32b27..b0023385db27 100644 --- a/svx/source/form/fmsrcimp.cxx +++ b/svx/source/form/fmsrcimp.cxx @@ -164,7 +164,7 @@ void FmRecordCountListener::NotifyCurrentCount() if (m_lnkWhoWantsToKnow.IsSet()) { DBG_ASSERT(m_xListening.is(), "FmRecordCountListener::NotifyCurrentCount : I have no propset ... !?"); - void* pTheCount = (void*)::comphelper::getINT32(m_xListening->getPropertyValue(FM_PROP_ROWCOUNT)); + void* pTheCount = (void*)(sal_IntPtr)::comphelper::getINT32(m_xListening->getPropertyValue(FM_PROP_ROWCOUNT)); m_lnkWhoWantsToKnow.Call(pTheCount); } } diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx index 43e8dbdc1c9f..d3044f27c2c5 100644 --- a/svx/source/gallery2/gallery1.cxx +++ b/svx/source/gallery2/gallery1.cxx @@ -94,25 +94,17 @@ INetURLObject GalleryThemeEntry::ImplGetURLIgnoreCase( const INetURLObject& rURL { INetURLObject aURL( rURL ); String aFileName; - BOOL bExists = FALSE; // check original file name - if( FileExists( aURL ) ) - bExists = TRUE; - else + if( !FileExists( aURL ) ) { // check upper case file name aURL.setName( aURL.getName().toAsciiUpperCase() ); - if( FileExists( aURL ) ) - bExists = TRUE; - else + if(!FileExists( aURL ) ) { // check lower case file name aURL.setName( aURL.getName().toAsciiLowerCase() ); - - if( FileExists( aURL ) ) - bExists = TRUE; } } diff --git a/svx/source/stbctrls/modctrl.cxx b/svx/source/stbctrls/modctrl.cxx index a2470b9a3bb5..26379211de3f 100644 --- a/svx/source/stbctrls/modctrl.cxx +++ b/svx/source/stbctrls/modctrl.cxx @@ -122,7 +122,6 @@ Point centerImage(const Rectangle& rBoundingRect, const Image& rImg) } void SvxModifyControl::Paint( const UserDrawEvent& rUsrEvt ) { - const Rectangle aControlRect = getControlRect(); OutputDevice* pDev = rUsrEvt.GetDevice(); Rectangle aRect = rUsrEvt.GetRect(); diff --git a/svx/source/stbctrls/xmlsecctrl.cxx b/svx/source/stbctrls/xmlsecctrl.cxx index eda2ddda5eec..c83abbcd6d36 100644 --- a/svx/source/stbctrls/xmlsecctrl.cxx +++ b/svx/source/stbctrls/xmlsecctrl.cxx @@ -147,8 +147,6 @@ void XmlSecStatusBarControl::Paint( const UserDrawEvent& rUsrEvt ) OutputDevice* pDev = rUsrEvt.GetDevice(); DBG_ASSERT( pDev, "-XmlSecStatusBarControl::Paint(): no Output Device... this will lead to nirvana..." ); Rectangle aRect = rUsrEvt.GetRect(); - StatusBar& rBar = GetStatusBar(); - Point aItemPos = rBar.GetItemTextPos( GetId() ); Color aOldLineColor = pDev->GetLineColor(); Color aOldFillColor = pDev->GetFillColor(); diff --git a/svx/source/svdraw/svdcrtv.cxx b/svx/source/svdraw/svdcrtv.cxx index a518511911c5..f3ff2141c36b 100644 --- a/svx/source/svdraw/svdcrtv.cxx +++ b/svx/source/svdraw/svdcrtv.cxx @@ -473,7 +473,6 @@ BOOL SdrCreateView::ImpBegCreateObj(UINT32 nInvent, UINT16 nIdent, const Point& } if (pAktCreate!=NULL) { - BOOL bStartEdit=FALSE; // nach Ende von Create automatisch TextEdit starten if (pDefaultStyleSheet!=NULL) pAktCreate->NbcSetStyleSheet(pDefaultStyleSheet, sal_False); // #101618# SW uses a naked SdrObject for frame construction. Normally, such an @@ -492,8 +491,6 @@ BOOL SdrCreateView::ImpBegCreateObj(UINT32 nInvent, UINT16 nIdent, const Point& aSet.Put(XFillStyleItem(XFILL_NONE)); pAktCreate->SetMergedItemSet(aSet); - - bStartEdit=TRUE; } if (nInvent==SdrInventor && (nIdent==OBJ_TEXT || nIdent==OBJ_TEXTEXT || nIdent==OBJ_TITLETEXT || nIdent==OBJ_OUTLINETEXT)) @@ -506,8 +503,6 @@ BOOL SdrCreateView::ImpBegCreateObj(UINT32 nInvent, UINT16 nIdent, const Point& aSet.Put(XLineStyleItem(XLINE_NONE)); pAktCreate->SetMergedItemSet(aSet); - - bStartEdit=TRUE; } if (!rLogRect.IsEmpty()) pAktCreate->NbcSetLogicRect(rLogRect); diff --git a/svx/source/tbxctrls/layctrl.cxx b/svx/source/tbxctrls/layctrl.cxx index c67194929ce9..c3dc54e999e0 100644 --- a/svx/source/tbxctrls/layctrl.cxx +++ b/svx/source/tbxctrls/layctrl.cxx @@ -307,7 +307,6 @@ void TableWindow::Paint( const Rectangle& ) aText += String(SVX_RESSTR(RID_SVXSTR_PAGES)); } - Size aSize = GetOutputSizePixel(); Size aTextSize( GetTextWidth( aText ), GetTextHeight() ); long nTextX = nSelectionWidth + TABLE_CELL_WIDTH; @@ -490,7 +489,6 @@ void ColumnsWindow::MouseMove( const MouseEvent& rMEvt ) SfxPopupWindow::MouseMove( rMEvt ); Point aPos = rMEvt.GetPosPixel(); Point aMousePos = aPos; - Point aWinPos = GetPosPixel(); if ( rMEvt.IsEnterWindow() ) CaptureMouse();