diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 05:41:44 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-02-25 05:43:16 +0100 |
commit | 76b3e61bb4ac66decd7800ef309f3241e77d538f (patch) | |
tree | 6b5f3e8a2c644386f6569b009237ee63040bcde2 /sc | |
parent | 7cbeac07d21413443889e6ee777a428782e746ae (diff) |
loplugin: unused variables
Change-Id: I07b82471f0f32e9e894d4eb392beedeafc6be0c7
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dpgroup.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/dbdata.cxx | 1 | ||||
-rw-r--r-- | sc/source/filter/oox/condformatbuffer.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/condformat/condformatdlgentry.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/navipi/content.cxx | 1 | ||||
-rw-r--r-- | sc/source/ui/unoobj/shapeuno.cxx | 1 |
7 files changed, 1 insertions, 8 deletions
diff --git a/sc/source/core/data/dpgroup.cxx b/sc/source/core/data/dpgroup.cxx index 483677b71b1e..a7a216bd622a 100644 --- a/sc/source/core/data/dpgroup.cxx +++ b/sc/source/core/data/dpgroup.cxx @@ -845,8 +845,6 @@ void ScDPGroupTableData::FillGroupValues(vector<SCROW>& rItems, const vector<lon SvNumberFormatter* pFormatter = pDoc->GetFormatTable(); sal_Int32 nPartValue = ScDPUtil::getDatePartValue( pData->GetValue(), *pNumInfo, nDatePart, pFormatter); - rtl::OUString aName = ScDPUtil::getDateGroupName( - nDatePart, nPartValue, pFormatter, pNumInfo->mfStart, pNumInfo->mfEnd); ScDPItemData aItem(nDatePart, nPartValue); rItems[i] = pCache->GetIdByItemData(nColumn, aItem); diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx index ca3d5e208624..6b773c3c86c8 100644 --- a/sc/source/core/tool/dbdata.cxx +++ b/sc/source/core/tool/dbdata.cxx @@ -784,7 +784,6 @@ ScDBData* ScDBCollection::AnonDBs::getByRange(const ScRange& rRange) void ScDBCollection::AnonDBs::insert(ScDBData* p) { - rtl::OUString aName(RTL_CONSTASCII_USTRINGPARAM(STR_DB_GLOBAL_NONAME)); SAL_WNODEPRECATED_DECLARATIONS_PUSH ::std::auto_ptr<ScDBData> pNew(p); SAL_WNODEPRECATED_DECLARATIONS_POP diff --git a/sc/source/filter/oox/condformatbuffer.cxx b/sc/source/filter/oox/condformatbuffer.cxx index 0fd094ec6c3f..aec2f5db0e59 100644 --- a/sc/source/filter/oox/condformatbuffer.cxx +++ b/sc/source/filter/oox/condformatbuffer.cxx @@ -726,7 +726,7 @@ void CondFormatRule::finalizeImport() if( !aReplaceFormula.isEmpty() ) { - OUString aAddress, aRanges, aText, aComp; + OUString aAddress; sal_Int32 nStrPos = aReplaceFormula.getLength(); while( (nStrPos = aReplaceFormula.lastIndexOf( '#', nStrPos )) >= 0 ) { diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx index 40d247e1ec34..b6338de1061c 100644 --- a/sc/source/ui/condformat/condformatdlgentry.cxx +++ b/sc/source/ui/condformat/condformatdlgentry.cxx @@ -449,7 +449,6 @@ void StyleSelect( ListBox& rLbStyle, ScDocument* pDoc, SvxFontPrevWindow& rWdPre pDisp->Lock(sal_True); // Find the new style and add it into the style list boxes - rtl::OUString aNewStyle; SfxStyleSheetIterator aStyleIter( pDoc->GetStyleSheetPool(), SFX_STYLE_FAMILY_PARA ); bool bFound = false; for ( SfxStyleSheetBase* pStyle = aStyleIter.First(); pStyle && !bFound; pStyle = aStyleIter.Next() ) diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 24e4c82b8d7d..0c585a95fda6 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -424,7 +424,6 @@ sal_Bool ScDocShell::LoadXML( SfxMedium* pLoadMedium, const ::com::sun::star::un //did not use cached formula results. uno::Reference<document::XDocumentPropertiesSupplier> xDPS(GetModel(), uno::UNO_QUERY_THROW); uno::Reference<document::XDocumentProperties> xDocProps = xDPS->getDocumentProperties(); - rtl::OUString sGenerator = xDocProps->getGenerator(); Reference<uno::XComponentContext> xContext = comphelper::getProcessComponentContext(); ScRecalcOptions nRecalcMode = diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx index 30053a301f6d..4653c359e823 100644 --- a/sc/source/ui/navipi/content.cxx +++ b/sc/source/ui/navipi/content.cxx @@ -370,7 +370,6 @@ void ScContentTree::KeyInput( const KeyEvent& rKEvt ) if( (nType != SC_CONTENT_ROOT) && (nChild == SC_CONTENT_NOCHILD) ) { - String aText( GetEntryText( pEntry ) ); if ( IsExpanded( pEntry ) ) Collapse( pEntry ); else diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx index 6d6f334a2f13..21aced61bcf4 100644 --- a/sc/source/ui/unoobj/shapeuno.cxx +++ b/sc/source/ui/unoobj/shapeuno.cxx @@ -290,7 +290,6 @@ static ScRange lcl_GetAnchorCell( uno::Reference< drawing::XShape >& xShape, ScD { ScRange aReturn; rUnoPoint = xShape->getPosition(); - rtl::OUString sType(xShape->getShapeType()); sal_Bool bCaptionShape(lcl_GetCaptionPoint(xShape, rCaptionPoint)); if (pDoc->IsNegativePage(nTab)) { |