diff options
59 files changed, 3 insertions, 100 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index dd0121439d07..abe67f6ecc30 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -590,9 +590,6 @@ ConvertSvxConfigEntry( static const OUString aDescriptorLabel( ITEM_DESCRIPTOR_LABEL ); - static const OUString aDescriptorContainer( - ITEM_DESCRIPTOR_CONTAINER ); - uno::Sequence< beans::PropertyValue > aPropSeq( 3 ); aPropSeq[0].Name = aDescriptorCommandURL; @@ -668,9 +665,6 @@ ConvertToolbarEntry( static const OUString aDescriptorLabel( ITEM_DESCRIPTOR_LABEL ); - static const OUString aDescriptorContainer( - ITEM_DESCRIPTOR_CONTAINER ); - static const OUString aIsVisible( ITEM_DESCRIPTOR_ISVISIBLE ); @@ -1933,8 +1927,8 @@ void SvxConfigPage::PositionContentsListBox() return; } - Point p, newp; - Size s, news; + Point p; + Size s; long x, y, width, height; // x and width is same as aTopLevelListBox @@ -2060,7 +2054,6 @@ SvTreeListEntry* SvxConfigPage::AddFunction( SvTreeListEntry* pTarget, bool bFront, bool bAllowDuplicates ) { String aDisplayName = pSelectorDlg->GetSelectedDisplayName(); - String aHelpText = pSelectorDlg->GetSelectedHelpText(); String aURL = pSelectorDlg->GetScriptURL(); if ( !aURL.Len() ) diff --git a/cui/source/customize/selector.cxx b/cui/source/customize/selector.cxx index 658c81a822f4..65bfde5a69b6 100644 --- a/cui/source/customize/selector.cxx +++ b/cui/source/customize/selector.cxx @@ -1027,10 +1027,4 @@ SvxScriptSelectorDialog::GetSelectedDisplayName() return m_pCommands->GetEntryText( m_pCommands->GetLastSelectedEntry() ); } -String -SvxScriptSelectorDialog::GetSelectedHelpText() -{ - return m_pCommands->GetHelpText( m_pCommands->GetLastSelectedEntry() ); -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index f7332b991797..9c247d3dcdfc 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -203,10 +203,6 @@ static bool loadBrandSvg(const char *pName, BitmapEx &rBitmap, int nWidth ) osl_getProcessLocale (&pLoc); LanguageTag aLanguageTag( *pLoc); - rtl::OUString aName = aBaseName + aSvg; - rtl::OUString aLocaleName = ( aBaseName + rtl::OUString("-") + - aLanguageTag.getBcp47() + - aSvg ); rtl::OUString uri = rtl::OUString::createFromAscii( "$BRAND_BASE_DIR/program" ) + aBaseName+aSvg; rtl::Bootstrap::expandMacros( uri ); INetURLObject aObj( uri ); diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index b594b2e4d866..87a6e7c1c892 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -163,7 +163,6 @@ void SearchThread::ImplSearch( const INetURLObject& rStartURL, if( bDocument ) { GraphicDescriptor aDesc( aFoundURL ); - String aFileName; if( ( aDesc.Detect() && ::std::find( rFormats.begin(), @@ -292,7 +291,6 @@ TakeThread::~TakeThread() void TakeThread::execute() { - String aName; INetURLObject aURL; sal_uInt16 nEntries; GalleryTheme* pThm = mpBrowser->GetXChgData()->pTheme; diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index d994258066f2..afad83fed451 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -354,7 +354,6 @@ namespace svx long nItemWidth = 2*GetTextWidth( aOneCharacter ); m_aValueSet.SetItemWidth( nItemWidth ); - Point aPos(0,0); Size aSize(GetSizePixel()); m_aValueSet.SetSizePixel(aSize); m_aListBox.SetSizePixel(aSize); diff --git a/cui/source/dialogs/hlinettp.cxx b/cui/source/dialogs/hlinettp.cxx index 319e68dc36dd..b270153d320f 100644 --- a/cui/source/dialogs/hlinettp.cxx +++ b/cui/source/dialogs/hlinettp.cxx @@ -182,7 +182,6 @@ void SvxHyperlinkInternetTp::GetCurentItemData ( String& aStrURL, String& aStrNa String SvxHyperlinkInternetTp::CreateAbsoluteURL() const { String aStrURL = maCbbTarget.GetText(); - String aScheme = GetSchemeFromURL(aStrURL); INetURLObject aURL(aStrURL); diff --git a/cui/source/dialogs/hlmarkwn.cxx b/cui/source/dialogs/hlmarkwn.cxx index 6430658f0b09..fe8408130bd1 100644 --- a/cui/source/dialogs/hlmarkwn.cxx +++ b/cui/source/dialogs/hlmarkwn.cxx @@ -208,7 +208,6 @@ sal_Bool SvxHlinkDlgMarkWnd::ConnectToDialog( sal_Bool bDoit ) void SvxHlinkDlgMarkWnd::RefreshTree ( String aStrURL ) { - String aEmptyStr; OUString aUStrURL; EnterWait(); diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index 12b2e50bcdf5..6c24c0c7ec69 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -989,7 +989,6 @@ sal_Bool IconChoiceDialog::QueryClose() void IconChoiceDialog::Start_Impl() { - Point aPos; sal_uInt16 nActPage; if ( mnCurrentPageId == 0 || mnCurrentPageId == USHRT_MAX ) diff --git a/cui/source/dialogs/scriptdlg.cxx b/cui/source/dialogs/scriptdlg.cxx index 33a17f60ef22..7bfbbf521fde 100644 --- a/cui/source/dialogs/scriptdlg.cxx +++ b/cui/source/dialogs/scriptdlg.cxx @@ -988,8 +988,6 @@ void SvxScriptOrgDialog::createEntry( SvTreeListEntry* pEntry ) String aChildName = aChildNode->getName(); SvTreeListEntry* pNewEntry = NULL; - - OUString name( aChildName ); Reference<XModel> xDocumentModel = getModel( pEntry ); // ISSUE do we need to remove all entries for parent diff --git a/cui/source/inc/selector.hxx b/cui/source/inc/selector.hxx index 508ca7c76387..ce1f607add8c 100644 --- a/cui/source/inc/selector.hxx +++ b/cui/source/inc/selector.hxx @@ -218,7 +218,6 @@ public: String GetScriptURL() const; String GetSelectedDisplayName(); - String GetSelectedHelpText(); void SetRunLabel(); void SetDialogDescription(const String& rDescription); }; diff --git a/cui/source/options/optpath.cxx b/cui/source/options/optpath.cxx index 5c322aec6cfe..d63081e505e8 100644 --- a/cui/source/options/optpath.cxx +++ b/cui/source/options/optpath.cxx @@ -268,7 +268,6 @@ SfxTabPage* SvxPathTabPage::Create( Window* pParent, sal_Bool SvxPathTabPage::FillItemSet( SfxItemSet& ) { - SvtPathOptions aPathOpt; for ( sal_uInt16 i = 0; i < pPathBox->GetEntryCount(); ++i ) { PathUserData_Impl* pPathImpl = (PathUserData_Impl*)pPathBox->GetEntry(i)->GetUserData(); @@ -284,7 +283,6 @@ sal_Bool SvxPathTabPage::FillItemSet( SfxItemSet& ) void SvxPathTabPage::Reset( const SfxItemSet& ) { pPathBox->Clear(); - SvtPathOptions aPathOpt; //! deprecated HeaderBar &rBar = pPathBox->GetTheHeaderBar(); long nWidth1 = rBar.GetTextWidth(rBar.GetItemText(1)); diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx index e2e18b23e6eb..b7f300de31c0 100644 --- a/cui/source/tabpages/tparea.cxx +++ b/cui/source/tabpages/tparea.cxx @@ -155,7 +155,6 @@ IMPL_LINK(SvxTransparenceTabPage, ModifiedTrgrHdl_Impl, void *, pControl) (sal_uInt16)aMtrTrgrBorder.GetValue(), 100, 100); - String aString; XFillFloatTransparenceItem aItem( rXFSet.GetPool()/*aString*/, aTmpGradient); rXFSet.Put ( aItem ); @@ -380,7 +379,6 @@ sal_Bool SvxTransparenceTabPage::FillItemSet(SfxItemSet& rAttrs) (sal_uInt16)aMtrTrgrBorder.GetValue(), 100, 100); - String aString; XFillFloatTransparenceItem aItem( rXFSet.GetPool()/*aString*/, aTmpGradient); const SfxPoolItem* pOld = GetOldItem(rAttrs, XATTR_FILLFLOATTRANSPARENCE); @@ -406,7 +404,6 @@ sal_Bool SvxTransparenceTabPage::FillItemSet(SfxItemSet& rAttrs) XGradient aGrad(aColor, Color(COL_WHITE)); aGrad.SetStartIntens(100); aGrad.SetEndIntens(100); - String aString; XFillFloatTransparenceItem aItem( rXFSet.GetPool()/*aString*/, aGrad); aItem.SetEnabled(sal_False); rAttrs.Put(aItem); diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx index 5f075a30e516..3f7588c11fb7 100644 --- a/sc/source/core/data/dpcache.cxx +++ b/sc/source/core/data/dpcache.cxx @@ -395,8 +395,6 @@ bool ScDPCache::InitFromDataBase(DBConnector& rDB) maLabelNames.clear(); maLabelNames.reserve(mnColumnCount+1); - std::vector<sal_Int32> aColTypes(mnColumnCount); - for (sal_Int32 nCol = 0; nCol < mnColumnCount; ++nCol) { rtl::OUString aColTitle = rDB.getColumnLabel(nCol); diff --git a/sc/source/core/tool/rangeseq.cxx b/sc/source/core/tool/rangeseq.cxx index 131d1a06be30..b5df5e964d56 100644 --- a/sc/source/core/tool/rangeseq.cxx +++ b/sc/source/core/tool/rangeseq.cxx @@ -266,7 +266,6 @@ sal_Bool ScRangeToSequence::FillMixedArray( uno::Any& rAny, ScDocument* pDoc, co long nColCount = rRange.aEnd.Col() + 1 - rRange.aStart.Col(); long nRowCount = rRange.aEnd.Row() + 1 - rRange.aStart.Row(); - String aDocStr; sal_Bool bHasErrors = false; uno::Sequence< uno::Sequence<uno::Any> > aRowSeq( nRowCount ); diff --git a/sc/source/core/tool/rangeutl.cxx b/sc/source/core/tool/rangeutl.cxx index 45bcd8a55bf8..a6d5af248da2 100644 --- a/sc/source/core/tool/rangeutl.cxx +++ b/sc/source/core/tool/rangeutl.cxx @@ -930,7 +930,6 @@ void ScRangeStringConverter::GetStringFromXMLRangeString( OUString& rString, con ScAddress::ExternalInfo aExtInfo1, aExtInfo2; ScAddress aCell1, aCell2; - rtl::OUString aBuf; sal_uInt16 nRet = aCell1.Parse(aBeginCell, pDoc, FormulaGrammar::CONV_OOO, &aExtInfo1); if ((nRet & SCA_VALID) != SCA_VALID) { diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx index 1d21113086be..dfc992de0bed 100644 --- a/sc/source/filter/excel/excimp8.cxx +++ b/sc/source/filter/excel/excimp8.cxx @@ -617,8 +617,6 @@ void XclImpAutoFilterData::ReadAutoFilter( XclImpStream& rStrm ) rEntry.eOp = SC_EQUAL; } - rtl::OUString aStr; - switch( nType ) { case EXC_AFTYPE_RK: diff --git a/sc/source/filter/starcalc/scflt.cxx b/sc/source/filter/starcalc/scflt.cxx index 22e239892062..1f6a96921bb7 100644 --- a/sc/source/filter/starcalc/scflt.cxx +++ b/sc/source/filter/starcalc/scflt.cxx @@ -1424,8 +1424,6 @@ void Sc10Import::LoadTables() sal_uInt16 DataValue; sal_uInt16 Count; sal_uInt16 i; - String aStr; // Universal-Konvertierungs-String - lcl_ReadPageFormat(rStream, PageFormat); diff --git a/sc/source/filter/xml/XMLExportDataPilot.cxx b/sc/source/filter/xml/XMLExportDataPilot.cxx index fd0fd4754093..2b7bb8679489 100644 --- a/sc/source/filter/xml/XMLExportDataPilot.cxx +++ b/sc/source/filter/xml/XMLExportDataPilot.cxx @@ -583,7 +583,6 @@ void ScXMLExportDataPilot::WriteNumGroupInfo(const ScDPNumGroupInfo& rGroupInfo) rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_END, XML_AUTO); else { - rtl::OUStringBuffer sDate; rtl::OUString sValue( ::rtl::math::doubleToUString( rGroupInfo.mfEnd, rtl_math_StringFormat_Automatic, rtl_math_DecimalPlaces_Max, '.', true)); diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index e49bf0b8e558..b373338b4f0d 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -962,7 +962,6 @@ void ScXMLExport::CloseHeaderColumn() void ScXMLExport::ExportColumns(const sal_Int32 nTable, const table::CellRangeAddress& aColumnHeaderRange, const bool bHasColumnHeader) { sal_Int32 nColsRepeated (1); - rtl::OUString sParent; sal_Int32 nIndex; sal_Int32 nPrevColumn(0); bool bPrevIsVisible (true); diff --git a/sc/source/filter/xml/xmlstyli.cxx b/sc/source/filter/xml/xmlstyli.cxx index 7cca689802c8..a29930b69daf 100644 --- a/sc/source/filter/xml/xmlstyli.cxx +++ b/sc/source/filter/xml/xmlstyli.cxx @@ -410,7 +410,7 @@ ScCondFormatEntry* ScXMLMapContext::CreateConditionEntry() } ScConditionMode eMode = ScConditionEntry::GetModeFromApi(aParseResult.meOperator); - rtl::OUString aExpr1, aExpr2, aNmsp1, aNmsp2; + rtl::OUString aNmsp1, aNmsp2; ScDocument* pDoc = GetScImport().GetDocument(); ScCondFormatEntry* pEntry = new ScCondFormatEntry(eMode, aParseResult.maOperand1, aParseResult.maOperand2, pDoc, ScAddress(), msApplyStyle, diff --git a/sc/source/ui/cctrl/cbuttonw.cxx b/sc/source/ui/cctrl/cbuttonw.cxx index 91475beac74a..3e7d681c646c 100644 --- a/sc/source/ui/cctrl/cbuttonw.cxx +++ b/sc/source/ui/cctrl/cbuttonw.cxx @@ -73,7 +73,6 @@ void ScDDComboBoxButton::Draw( const Point& rAt, Color aOldLine = pOut->GetLineColor(); sal_Bool bOldEnable = pOut->IsMapModeEnabled(); - Size aLogPix( 1, 1 ); Rectangle aBtnRect( rAt, rSize ); Rectangle aInnerRect = aBtnRect; diff --git a/sc/source/ui/dbgui/consdlg.cxx b/sc/source/ui/dbgui/consdlg.cxx index b8c8bbb1fcd0..ce675a2e1fec 100644 --- a/sc/source/ui/dbgui/consdlg.cxx +++ b/sc/source/ui/dbgui/consdlg.cxx @@ -249,8 +249,6 @@ void ScConsolidateDlg::FillAreaLists() if ( pRangeUtil && pAreaData && (nAreaDataCount > 0) ) { - String aString; - for ( size_t i=0; (i<nAreaDataCount) && (pAreaData[i].aStrName.Len()>0); i++ ) diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx index e958bf92cc51..95f22f570e8d 100644 --- a/sc/source/ui/dbgui/dbnamdlg.cxx +++ b/sc/source/ui/dbgui/dbnamdlg.cxx @@ -278,7 +278,6 @@ void ScDbNameDlg::SetInfoStrings( const ScDBData* pDBData ) aFTSource.SetText(aBuf.makeStringAndClear()); aBuf.append(aStrOperations); - String aOper = aStrOperations; if (pDBData) { aBuf.append(sal_Unicode(' ')); diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 5eec3921540e..cb697365fa64 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -578,7 +578,6 @@ void ScTabPageSortOptions::Init() { String theArea; ScDBCollection* pDBColl = pDoc->GetDBCollection(); - rtl::OUString theDbArea; const SCTAB nCurTab = pViewData->GetTabNo(); rtl::OUString theDbName = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(STR_DB_LOCAL_NONAME)); const formula::FormulaGrammar::AddressConvention eConv = pDoc->GetAddressConvention(); diff --git a/sc/source/ui/drawfunc/chartsh.cxx b/sc/source/ui/drawfunc/chartsh.cxx index 06ff385b43e8..d4de9cf6ab16 100644 --- a/sc/source/ui/drawfunc/chartsh.cxx +++ b/sc/source/ui/drawfunc/chartsh.cxx @@ -93,7 +93,6 @@ void ScChartShell::ExecuteExportAsGraphic( SfxRequest& ) const Graphic* pGraphic = aOle2Object->GetGraphic(); if( pGraphic != NULL ) { - String sGrfNm, sFilterNm; GraphicHelper::ExportGraphic( *pGraphic, String("") ); } } diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx index 32bfae897582..1dd0fe09acd1 100644 --- a/sc/source/ui/formdlg/dwfunctr.cxx +++ b/sc/source/ui/formdlg/dwfunctr.cxx @@ -831,7 +831,6 @@ void ScFunctionDockWin::UpdateFunctionList() void ScFunctionDockWin::DoEnter(sal_Bool /* bOk */) //@@ ??? { String aFirstArgStr; - String aParaStr; String aArgStr; String aString=pAllFuncList->GetSelectEntry(); SfxViewShell* pCurSh = SfxViewShell::Current(); diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx index 7c4ea0846843..3e326f9c4a9b 100644 --- a/sc/source/ui/miscdlgs/acredlin.cxx +++ b/sc/source/ui/miscdlgs/acredlin.cxx @@ -211,7 +211,6 @@ void ScAcceptChgDlg::ReInit(ScViewData* ptrViewData) void ScAcceptChgDlg::Init() { - String aAreaStr; ScRange aRange; OSL_ENSURE( pViewData && pDoc, "ViewData oder Document nicht gefunden!" ); @@ -316,7 +315,6 @@ bool ScAcceptChgDlg::IsValidAction(const ScChangeAction* pScChangeAction) DateTime aDateTime=pScChangeAction->GetDateTime(); ScChangeActionType eType=pScChangeAction->GetType(); - String aString; rtl::OUString aDesc; String aComment = comphelper::string::remove(pScChangeAction->GetComment(), '\n'); diff --git a/sc/source/ui/miscdlgs/crnrdlg.cxx b/sc/source/ui/miscdlgs/crnrdlg.cxx index d8c2a6b99dd4..de5545e3045b 100644 --- a/sc/source/ui/miscdlgs/crnrdlg.cxx +++ b/sc/source/ui/miscdlgs/crnrdlg.cxx @@ -399,7 +399,6 @@ void ScColRowNameRangesDlg::SetReference( const ScRange& rRef, ScDocument* /* pD if ( rRef.aStart != rRef.aEnd ) RefInputStart( pEdActive ); - String aRefStr; if ( pEdActive == &aEdAssign ) SetColRowData( rRef, sal_True ); else diff --git a/sc/source/ui/miscdlgs/highred.cxx b/sc/source/ui/miscdlgs/highred.cxx index 007f8d6cb1cd..2e7ae0f5e144 100644 --- a/sc/source/ui/miscdlgs/highred.cxx +++ b/sc/source/ui/miscdlgs/highred.cxx @@ -100,7 +100,6 @@ ScHighlightChgDlg::~ScHighlightChgDlg() void ScHighlightChgDlg::Init() { - String aAreaStr; ScRange aRange; OSL_ENSURE( pViewData && pDoc, "ViewData oder Document nicht gefunden!" ); diff --git a/sc/source/ui/unoobj/afmtuno.cxx b/sc/source/ui/unoobj/afmtuno.cxx index 85ca2477d5d0..b2137e8e7c3f 100644 --- a/sc/source/ui/unoobj/afmtuno.cxx +++ b/sc/source/ui/unoobj/afmtuno.cxx @@ -297,7 +297,6 @@ void SAL_CALL ScAutoFormatsObj::removeByName( const rtl::OUString& aName ) lang::WrappedTargetException, uno::RuntimeException) { SolarMutexGuard aGuard; - String aNameStr(aName); ScAutoFormat* pFormats = ScGlobal::GetOrCreateAutoFormat(); ScAutoFormat::iterator it = pFormats->find(aName); @@ -372,7 +371,6 @@ uno::Sequence<rtl::OUString> SAL_CALL ScAutoFormatsObj::getElementNames() { SolarMutexGuard aGuard; ScAutoFormat* pFormats = ScGlobal::GetOrCreateAutoFormat(); - String aName; uno::Sequence<rtl::OUString> aSeq(pFormats->size()); rtl::OUString* pAry = aSeq.getArray(); ScAutoFormat::const_iterator it = pFormats->begin(), itEnd = pFormats->end(); diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 267194f61a2e..edd3e41f894b 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -1042,7 +1042,6 @@ void ScChart2DataProvider::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint rtl::OUString aRangeRepresentation; for(sal_Int32 i = 0; i < aArguments.getLength(); ++i) { - rtl::OUString sName(aArguments[i].Name); if ( aArguments[i].Name == "CellRangeRepresentation" ) { aArguments[i].Value >>= aRangeRepresentation; @@ -1449,7 +1448,6 @@ ScChart2DataProvider::createDataSource( uno::Sequence< sal_Int32 > aSequenceMapping; for(sal_Int32 i = 0; i < aArguments.getLength(); ++i) { - rtl::OUString sName(aArguments[i].Name); if ( aArguments[i].Name == "DataRowSource" ) { chart::ChartDataRowSource eSource = chart::ChartDataRowSource_COLUMNS; diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 1e174bbfc8b4..dc4d12f20035 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -1132,7 +1132,6 @@ void SAL_CALL ScModelObj::render( sal_Int32 nSelRenderer, const uno::Any& aSelec ScDocument* pDoc = pDocShell->GetDocument(); FmFormView* pDrawView = NULL; - Rectangle aFull( 0, 0, LONG_MAX, LONG_MAX ); // #114135# ScDrawLayer* pModel = pDoc->GetDrawLayer(); diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx index 9d9acf505c99..a5d5cb5c7c7e 100644 --- a/sc/source/ui/unoobj/styleuno.cxx +++ b/sc/source/ui/unoobj/styleuno.cxx @@ -980,7 +980,6 @@ uno::Sequence<rtl::OUString> SAL_CALL ScStyleFamilyObj::getElementNames() SfxStyleSheetIterator aIter( pStylePool, eFamily ); sal_uInt16 nCount = aIter.Count(); - String aName; uno::Sequence<rtl::OUString> aSeq(nCount); rtl::OUString* pAry = aSeq.getArray(); SfxStyleSheetBase* pStyle = aIter.First(); diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 2f9e6421644b..918f6b26c7ff 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -1153,7 +1153,6 @@ getCellRangesForAddress( sal_uInt16& rResFlags, const rtl::OUString& sAddress, S if ( pDocSh ) { pDoc = pDocSh->GetDocument(); - String aString(sAddress); sal_uInt16 nMask = SCA_VALID; rResFlags = rCellRanges.Parse( sAddress, pDoc, nMask, eConv, cDelimiter ); if ( rResFlags & SCA_VALID ) diff --git a/sc/source/ui/view/drawvie3.cxx b/sc/source/ui/view/drawvie3.cxx index d51f18bbf45a..f65a0d40237d 100644 --- a/sc/source/ui/view/drawvie3.cxx +++ b/sc/source/ui/view/drawvie3.cxx @@ -112,7 +112,6 @@ ScAnchorType ScDrawView::GetAnchorType() const { const SdrMarkList* pMark = &GetMarkedObjectList(); sal_uLong nCount = pMark->GetMarkCount(); - Point p0; const SdrObject* pObj = NULL; for( sal_uLong i=0; i<nCount; i++ ) { diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx index be981b235d92..033baccb84b4 100644 --- a/sc/source/ui/view/preview.cxx +++ b/sc/source/ui/view/preview.cxx @@ -1265,7 +1265,6 @@ void ScPreview::MouseMove( const MouseEvent& rMEvt ) long nRightMargin = 0; long nTopMargin = 0; long nBottomMargin = 0; - Size PageSize; long nWidth = (long) lcl_GetDocPageSize(pDocShell->GetDocument(), nTab).Width(); long nHeight = (long) lcl_GetDocPageSize(pDocShell->GetDocument(), nTab).Height(); diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx index 453fd01acfad..f3b629d9d6a4 100644 --- a/sc/source/ui/view/tabvwshf.cxx +++ b/sc/source/ui/view/tabvwshf.cxx @@ -117,7 +117,6 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) if ( nVis<=nTabSelCount || !pDoc->IsDocEditable() ) break; - rtl::OUString aName; SCTAB nHideTab; ScMarkData::MarkedTabsType::const_iterator it; @@ -721,7 +720,6 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) sal_uInt16 nRet = RET_OK; /// temp sal_Bool bDone = false; /// temp Color aTabBgColor; - Color aNewTabBgColor; aTabBgColor = pDoc->GetTabBgColor( nCurrentTab ); ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create(); diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index 1cce1ab6ec7b..8ae56db9e2d6 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -2718,8 +2718,6 @@ void ScViewData::WriteUserDataSequence(uno::Sequence <beans::PropertyValue>& rSe void ScViewData::ReadUserDataSequence(const uno::Sequence <beans::PropertyValue>& rSettings) { - Fraction aZoomX, aZoomY, aPageZoomX, aPageZoomY; //! evaluate (all sheets?) - std::vector<bool> aHasZoomVect( GetDocument()->GetTableCount(), false ); sal_Int32 nCount(rSettings.getLength()); diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx index 8091aa69671c..90eb27c4941a 100644 --- a/sd/source/core/CustomAnimationEffect.cxx +++ b/sd/source/core/CustomAnimationEffect.cxx @@ -2642,7 +2642,6 @@ void EffectSequenceHelper::createTextGroupParagraphEffects( CustomAnimationTextG { EffectSequence::iterator aInsertIter( find( pEffect ) ); - const OUString strNumberingLevel( "NumberingLevel" ); Reference< XEnumerationAccess > xText( xTarget, UNO_QUERY_THROW ); Reference< XEnumeration > xEnumeration( xText->createEnumeration(), UNO_QUERY_THROW ); diff --git a/sd/source/core/sdpage.cxx b/sd/source/core/sdpage.cxx index 1e5beb0c1a0a..dc99226d38ba 100644 --- a/sd/source/core/sdpage.cxx +++ b/sd/source/core/sdpage.cxx @@ -452,7 +452,6 @@ SdrObject* SdPage::CreatePresObj(PresObjKind eObjKind, sal_Bool bVertical, const pOutliner->SetStyleSheet( 0, NULL ); pOutliner->SetVertical( bVertical ); - String aEmptyStr; SetObjText( (SdrTextObj*) pSdrObj, (SdrOutliner*)pOutliner, eObjKind, aString ); pOutliner->Init( nOutlMode ); @@ -864,7 +863,6 @@ SdrObject* SdPage::CreateDefaultPresObj(PresObjKind eObjKind, bool bInsert) const long nLftBorder = GetLftBorder(); const long nUppBorder = GetUppBorder(); - Point aTitlePos ( nLftBorder, nUppBorder ); Size aPageSize ( GetSize() ); aPageSize.Width() -= nLftBorder + GetRgtBorder(); aPageSize.Height() -= nUppBorder + GetLwrBorder(); @@ -904,7 +902,6 @@ SdrObject* SdPage::CreateDefaultPresObj(PresObjKind eObjKind, bool bInsert) else { // create header&footer objects for handout and notes master - Point aTitlePos ( GetLftBorder(), GetUppBorder() ); Size aPageSize ( GetSize() ); aPageSize.Width() -= GetLftBorder() + GetRgtBorder(); aPageSize.Height() -= GetUppBorder() + GetLwrBorder(); diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index 5f7671a714ab..2cbe841663d4 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -659,8 +659,6 @@ void SdStyleSheetPool::CopyLayoutSheets(const String& rLayoutName, SdStyleSheetP { SfxStyleSheetBase* pSheet = NULL; - String aOutlineTag(SdResId(STR_LAYOUT_OUTLINE)); - std::vector<String> aNameList; CreateLayoutSheetNames(rLayoutName,aNameList); diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 44bacaff1e59..21c664fb8635 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -2292,8 +2292,6 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a sal_Bool bPolyPolygon = mType == "drawing.PolyPolygon"; sal_Bool bPolyLine = mType == "drawing.PolyLine"; - Rectangle aPolyBoundRect; - const ::com::sun::star::awt::Size aSize100thmm( mXShape->getSize() ); const ::com::sun::star::awt::Point aPoint100thmm( mXShape->getPosition() ); Rectangle aRect100thmm( Point( aPoint100thmm.X, aPoint100thmm.Y ), Size( aSize100thmm.Width, aSize100thmm.Height ) ); diff --git a/sd/source/ui/dlg/animobjs.cxx b/sd/source/ui/dlg/animobjs.cxx index 870a90231de2..c54dcc5a7606 100644 --- a/sd/source/ui/dlg/animobjs.cxx +++ b/sd/source/ui/dlg/animobjs.cxx @@ -545,8 +545,6 @@ IMPL_LINK_NOARG(AnimationWindow, ModifyTimeHdl) void AnimationWindow::UpdateControl(bool const bDisableCtrls) { - String aString; - if (!m_FrameList.empty()) { BitmapEx aBmp(*m_FrameList[m_nCurrentFrame].first); diff --git a/sd/source/ui/dlg/dlgass.cxx b/sd/source/ui/dlg/dlgass.cxx index f048b28eac9e..1a4345f59538 100644 --- a/sd/source/ui/dlg/dlgass.cxx +++ b/sd/source/ui/dlg/dlgass.cxx @@ -1426,7 +1426,6 @@ void AssistentDlgImpl::UpdateUserData() pPage->SetAutoLayout(AUTOLAYOUT_TITLE, sal_True); SdrTextObj* pObj; - String aEmptyString; if( aTopic.Len() ) { diff --git a/sd/source/ui/dlg/sdpreslt.cxx b/sd/source/ui/dlg/sdpreslt.cxx index 4a786d1d75f4..c5f13625bc49 100644 --- a/sd/source/ui/dlg/sdpreslt.cxx +++ b/sd/source/ui/dlg/sdpreslt.cxx @@ -224,7 +224,6 @@ IMPL_LINK_NOARG(SdPresLayoutDlg, ClickLoadHdl) // Inserted update to force repaint Update(); - String aFile; sal_Bool bCancel = sal_False; switch (nResult) diff --git a/sd/source/ui/func/fusldlg.cxx b/sd/source/ui/func/fusldlg.cxx index d933768a4454..af3eecd3e49e 100644 --- a/sd/source/ui/func/fusldlg.cxx +++ b/sd/source/ui/func/fusldlg.cxx @@ -71,7 +71,6 @@ void FuSlideShowDlg::DoExecute( SfxRequest& ) std::vector<String> aPageNameList(mpDoc->GetSdPageCount( PK_STANDARD )); const String& rPresPage = rPresentationSettings.maPresPage; String aFirstPage; - String aStandardName( SdResId( STR_PAGE ) ); SdPage* pPage = NULL; long nPage; diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx index 2b5d3ceb4443..c30ec8049165 100644 --- a/sd/source/ui/func/futext.cxx +++ b/sd/source/ui/func/futext.cxx @@ -1184,7 +1184,6 @@ sal_Bool FuText::DeleteDefaultText() if ( mxTextObj.is() && mxTextObj->IsEmptyPresObj() ) { - String aString; SdPage* pPage = (SdPage*) mxTextObj->GetPage(); if (pPage) diff --git a/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx b/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx index 9a885f5fbd79..de382bf74c11 100644 --- a/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx +++ b/sd/source/ui/slidesorter/controller/SlsDragAndDropContext.cxx @@ -45,8 +45,6 @@ DragAndDropContext::DragAndDropContext (SlideSorter& rSlideSorter) : mpTargetSlideSorter(&rSlideSorter), mnInsertionIndex(-1) { - ::std::vector<const SdPage*> aPages; - // No Drag-and-Drop for master pages. if (rSlideSorter.GetModel().GetEditMode() != EM_PAGE) return; diff --git a/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx b/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx index 2175eaeecdd6..48b0898aad67 100644 --- a/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsVisibleAreaManager.cxx @@ -194,7 +194,6 @@ void VisibleAreaManager::MakeVisible (void) const sal_Int32 nVisibleHeight (aVisibleArea.GetHeight()); // Find the longest run of boxes whose union fits into the visible area. - Rectangle aBoundingBox; for (::std::vector<Rectangle>::const_iterator iBox(maVisibleRequests.begin()), iEnd(maVisibleRequests.end()); diff --git a/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx b/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx index 2cbfb069dab2..6aadcb720e14 100644 --- a/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx +++ b/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx @@ -68,7 +68,6 @@ namespace sd { namespace slidesorter { namespace view { //===== InsertionIndicatorOverlay =========================================== const static sal_Int32 gnShadowBorder = 3; -const static sal_Int32 gnSuperScaleFactor = 1; InsertionIndicatorOverlay::InsertionIndicatorOverlay (SlideSorter& rSlideSorter) : mrSlideSorter(rSlideSorter), @@ -208,9 +207,6 @@ Point InsertionIndicatorOverlay::PaintRepresentatives ( // Paint the preview. Bitmap aPreview (rRepresentatives[nIndex].maBitmap); - const Size aSuperSampleSize( - aPreviewSize.Width()*gnSuperScaleFactor, - aPreviewSize.Height()*gnSuperScaleFactor); aPreview.Scale(aPreviewSize, BMP_SCALE_BEST); rContent.DrawBitmapEx(aPageOffset, aPreview); diff --git a/sd/source/ui/toolpanel/controls/MasterPageObserver.cxx b/sd/source/ui/toolpanel/controls/MasterPageObserver.cxx index 1d27c9d084be..cd7df65920d3 100644 --- a/sd/source/ui/toolpanel/controls/MasterPageObserver.cxx +++ b/sd/source/ui/toolpanel/controls/MasterPageObserver.cxx @@ -226,8 +226,6 @@ void MasterPageObserver::Implementation::AddEventListener ( // Tell the new listener about all the master pages that are // currently in use. typedef ::std::vector<String> StringList; - StringList aNewMasterPages; - StringList aRemovedMasterPages; MasterPageContainer::iterator aDocumentIterator; for (aDocumentIterator=maUsedMasterPages.begin(); aDocumentIterator!=maUsedMasterPages.end(); diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx index 588982fa1cb2..88b9a83b658f 100644 --- a/sd/source/ui/unoidl/sddetect.cxx +++ b/sd/source/ui/unoidl/sddetect.cxx @@ -169,7 +169,6 @@ SdFilterDetect::~SdFilterDetect() bWasReadOnly = pItem && pItem->GetValue(); const SfxFilter* pFilter = 0; - String aFilterName; String aPrefix = rtl::OUString("private:factory/"); if( aURL.Match( aPrefix ) == aPrefix.Len() ) { diff --git a/sd/source/ui/unoidl/unolayer.cxx b/sd/source/ui/unoidl/unolayer.cxx index 21599334e2f3..b5a904bcfd9d 100644 --- a/sd/source/ui/unoidl/unolayer.cxx +++ b/sd/source/ui/unoidl/unolayer.cxx @@ -110,7 +110,6 @@ String SdLayer::convertToInternalName( const OUString& rName ) OUString SdLayer::convertToExternalName( const String& rName ) { - const String aCompare( rName ); if( rName == String( SdResId( STR_LAYER_BCKGRND ) ) ) { return OUString( sUNO_LayerName_background ); diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index b4902298f924..56fe8153deb3 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -1812,7 +1812,6 @@ void SAL_CALL SdXImpressDocument::render( sal_Int32 nRenderer, const uno::Any& r ::sd::ClientView* pView = new ::sd::ClientView( mpDocShell, pOut, NULL ); Rectangle aVisArea = Rectangle( Point(), mpDoc->GetSdPage( (sal_uInt16)nPageNumber - 1, ePageKind )->GetSize() ); Region aRegion( aVisArea ); - Point aOrigin; ::sd::ViewShell* pOldViewSh = mpDocShell->GetViewShell(); ::sd::View* pOldSdView = pOldViewSh ? pOldViewSh->GetView() : NULL; diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 18268ccfd031..59b1f0b96eac 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -859,7 +859,6 @@ namespace { sal_Int32(aPrintSize.Width() / nPageWidth))); const sal_Int32 nRowCount (::std::max(sal_Int32(2), sal_Int32(aPrintSize.Height() / nPageHeight))); - Point aPrintOrigin; for (sal_Int32 nRow=0; nRow<nRowCount; ++nRow) for (sal_Int32 nColumn=0; nColumn<nColumnCount; ++nColumn) { @@ -1968,7 +1967,6 @@ private: { ::boost::shared_ptr<ViewShell> pViewShell (mrBase.GetMainViewShell()); pViewShell->WriteFrameViewData(); - Point aPtZero; sal_Int32 nPageCount = mrBase.GetDocument()->GetSdPageCount(PK_STANDARD); StringRangeEnumerator aRangeEnum( diff --git a/sd/source/ui/view/ViewShellImplementation.cxx b/sd/source/ui/view/ViewShellImplementation.cxx index f48593f909cd..cea72846ce1d 100644 --- a/sd/source/ui/view/ViewShellImplementation.cxx +++ b/sd/source/ui/view/ViewShellImplementation.cxx @@ -104,7 +104,6 @@ void ViewShell::Implementation::ProcessModifyPageSlot ( sal_Bool bHandoutMode = sal_False; SdPage* pHandoutMPage = NULL; String aNewName; - String aOldName; AutoLayout aNewAutoLayout; diff --git a/sd/source/ui/view/ViewShellManager.cxx b/sd/source/ui/view/ViewShellManager.cxx index c22f64aac80a..2df51ea80499 100644 --- a/sd/source/ui/view/ViewShellManager.cxx +++ b/sd/source/ui/view/ViewShellManager.cxx @@ -1065,7 +1065,6 @@ void ViewShellManager::Implementation::CreateShells (void) ::osl::MutexGuard aGuard (maMutex); // Iterate over all view shells. - ShellStack aShellStack; ActiveShellList::reverse_iterator iShell; for (iShell=maActiveViewShells.rbegin(); iShell!=maActiveViewShells.rend(); ++iShell) { diff --git a/sd/source/ui/view/sdview2.cxx b/sd/source/ui/view/sdview2.cxx index e7b82835a827..1a9d5870c68e 100644 --- a/sd/source/ui/view/sdview2.cxx +++ b/sd/source/ui/view/sdview2.cxx @@ -116,7 +116,6 @@ struct SdNavigatorDropEvent : public ExecuteDropEvent // to fix fdo#45260 const Rectangle aMarkRect( GetAllMarkedRect() ); TransferableObjectDescriptor aObjDesc; - String aDisplayName; SdrOle2Obj* pSdrOleObj = NULL; SdrPageView* pPgView = GetSdrPageView(); SdPage* pOldPage = pPgView ? ( (SdPage*) pPgView->GetPage() ) : NULL; diff --git a/sd/source/ui/view/viewoverlaymanager.cxx b/sd/source/ui/view/viewoverlaymanager.cxx index 7701fa8433f5..0a9c9de0011a 100644 --- a/sd/source/ui/view/viewoverlaymanager.cxx +++ b/sd/source/ui/view/viewoverlaymanager.cxx @@ -374,7 +374,6 @@ BitmapEx ChangePlaceholderTag::createOverlayImage( int nHighlight ) SdrObject* pPlaceholder = mxPlaceholderObj.get(); SmartTagReference xThis( this ); const Rectangle& rSnapRect = pPlaceholder->GetSnapRect(); - const Point aPoint; OutputDevice* pDev = mrView.GetFirstOutputDevice(); if( pDev == 0 ) |