summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-27 11:22:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-27 11:25:33 +0000
commit96d7fff09c8c73fa6c22345110a4f89732c20f23 (patch)
treec6353540c064c402a853b83f95422fc2b361f803 /sc/source
parent5cd1a8ec06fe6760e7d05a6b45b846e738bc3e56 (diff)
WaE: gcc 4.6.0 various warnings
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/app/scmod.cxx10
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx2
-rw-r--r--sc/source/ui/docshell/docsh6.cxx7
-rw-r--r--sc/source/ui/undo/undoutil.cxx1
4 files changed, 1 insertions, 19 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 029cd9e900a7..cb443df4e62a 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -1047,7 +1047,6 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet )
BOOL bUpdateMarks = FALSE;
BOOL bUpdateRefDev = FALSE;
BOOL bCalcAll = FALSE;
- BOOL bSaveSpellCheck = FALSE;
BOOL bSaveAppOptions = FALSE;
BOOL bSaveInputOptions = FALSE;
@@ -1227,10 +1226,7 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet )
}
if ( bOldAutoSpell != bDoAutoSpell )
- {
SetAutoSpellProperty( bDoAutoSpell );
- bSaveSpellCheck = TRUE;
- }
if ( pDocSh )
pDocSh->PostPaintGridAll(); // wegen Markierungen
ScInputHandler* pInputHandler = GetInputHdl();
@@ -1314,12 +1310,6 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet )
//----------------------------------------------------------
-// if ( bSaveSpellCheck )
-// {
- // currently LinguProperties are saved only at program exit.
- // if a save method becomes available, it should be called here.
-// }
-
if ( bSaveAppOptions )
pAppCfg->OptionsChanged();
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 2189e7e2df14..60f37ca18602 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -1021,11 +1021,9 @@ BOOL ScDBDocFunc::DoSubTotals( SCTAB nTab, const ScSubTotalParam& rParam,
}
BOOL bOk = TRUE;
- BOOL bDelete = FALSE;
if (rParam.bReplace)
if (pDoc->TestRemoveSubTotals( nTab, rParam ))
{
- bDelete = TRUE;
bOk = ( MessBox( rDocShell.GetActiveDialogParent(), WinBits(WB_YES_NO | WB_DEF_YES),
// "StarCalc" "Daten loeschen?"
ScGlobal::GetRscString( STR_MSSG_DOSUBTOTALS_0 ),
diff --git a/sc/source/ui/docshell/docsh6.cxx b/sc/source/ui/docshell/docsh6.cxx
index a7b38f78a6af..bb57df567051 100644
--- a/sc/source/ui/docshell/docsh6.cxx
+++ b/sc/source/ui/docshell/docsh6.cxx
@@ -218,7 +218,6 @@ void ScDocShell::UpdateOle( const ScViewData* pViewData, BOOL bSnapSize )
Rectangle aOldArea = SfxObjectShell::GetVisArea();
Rectangle aNewArea = aOldArea;
- BOOL bChange = FALSE;
BOOL bEmbedded = aDocument.IsEmbedded();
if (bEmbedded)
aNewArea = aDocument.GetEmbeddedRect();
@@ -226,10 +225,7 @@ void ScDocShell::UpdateOle( const ScViewData* pViewData, BOOL bSnapSize )
{
SCTAB nTab = pViewData->GetTabNo();
if ( nTab != aDocument.GetVisibleTab() )
- {
aDocument.SetVisibleTab( nTab );
- bChange = TRUE;
- }
BOOL bNegativePage = aDocument.IsNegativePage( nTab );
SCCOL nX = pViewData->GetPosX(SC_SPLIT_LEFT);
@@ -244,10 +240,7 @@ void ScDocShell::UpdateOle( const ScViewData* pViewData, BOOL bSnapSize )
}
if (aNewArea != aOldArea)
- {
SetVisAreaOrSize( aNewArea, TRUE ); // hier muss auch der Start angepasst werden
- bChange = TRUE;
- }
}
//
diff --git a/sc/source/ui/undo/undoutil.cxx b/sc/source/ui/undo/undoutil.cxx
index 0be0a7f4f363..6d6fcc770a1f 100644
--- a/sc/source/ui/undo/undoutil.cxx
+++ b/sc/source/ui/undo/undoutil.cxx
@@ -99,6 +99,7 @@ ScDBData* ScUndoUtil::GetOldDBData( ScDBData* pUndoData, ScDocument* pDoc, SCTAB
bWasTemp = TRUE;
}
DBG_ASSERT(bWasTemp, "Undo: didn't find database range");
+ (void)bWasTemp;
USHORT nIndex;
ScDBCollection* pColl = pDoc->GetDBCollection();