summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-02-24 18:39:08 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-02-24 18:42:02 +0100
commit305bf19e390aebdf2d20ea052a92f782e8d1185c (patch)
tree7a94d504a364f03e998e73774eb10b162b173731 /sc
parente5444ae3e099e1279b9b685b623c6e50bb8efd3b (diff)
loplugin: unused variables
And some fallout. Change-Id: I8dfc12f3566e72d79d4f9930284c92577aa485a1
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dpcache.cxx2
-rw-r--r--sc/source/core/tool/rangeseq.cxx1
-rw-r--r--sc/source/core/tool/rangeutl.cxx1
-rw-r--r--sc/source/filter/excel/excimp8.cxx2
-rw-r--r--sc/source/filter/starcalc/scflt.cxx2
-rw-r--r--sc/source/filter/xml/XMLExportDataPilot.cxx1
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx1
-rw-r--r--sc/source/filter/xml/xmlstyli.cxx2
-rw-r--r--sc/source/ui/cctrl/cbuttonw.cxx1
-rw-r--r--sc/source/ui/dbgui/consdlg.cxx2
-rw-r--r--sc/source/ui/dbgui/dbnamdlg.cxx1
-rw-r--r--sc/source/ui/dbgui/tpsort.cxx1
-rw-r--r--sc/source/ui/drawfunc/chartsh.cxx1
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx1
-rw-r--r--sc/source/ui/miscdlgs/acredlin.cxx2
-rw-r--r--sc/source/ui/miscdlgs/crnrdlg.cxx1
-rw-r--r--sc/source/ui/miscdlgs/highred.cxx1
-rw-r--r--sc/source/ui/unoobj/afmtuno.cxx2
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx2
-rw-r--r--sc/source/ui/unoobj/docuno.cxx1
-rw-r--r--sc/source/ui/unoobj/styleuno.cxx1
-rw-r--r--sc/source/ui/vba/vbarange.cxx1
-rw-r--r--sc/source/ui/view/drawvie3.cxx1
-rw-r--r--sc/source/ui/view/preview.cxx1
-rw-r--r--sc/source/ui/view/tabvwshf.cxx2
-rw-r--r--sc/source/ui/view/viewdata.cxx2
26 files changed, 1 insertions, 35 deletions
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());