summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-09-11 10:32:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-11 17:11:09 +0200
commit0e2467a1554faa7b1b73d042539e79de806aafdd (patch)
tree300b1c4a11d952355beaf96d0b5abbd4a62801f4 /sc
parente2fac98819c00b4fb50f9de9d0f32d20092f3191 (diff)
-Werror,-Wunused-value
Change-Id: I30a2d1c5ad0611eeb69ee50dadfb847981d0a61d
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh.cxx12
-rw-r--r--sc/source/ui/view/preview.cxx2
2 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index 26a470c91f98..211473104ebf 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -475,7 +475,7 @@ sal_Bool ScDocShell::Load( SfxMedium& rMedium )
{
RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScDocShell::Load" );
LoadMediumGuard aLoadGuard(&aDocument);
- ScRefreshTimerProtector( aDocument.GetRefreshTimerControlAddress() );
+ ScRefreshTimerProtector aProt( aDocument.GetRefreshTimerControlAddress() );
// only the latin script language is loaded
// -> initialize the others from options (before loading)
@@ -959,7 +959,7 @@ sal_Bool ScDocShell::LoadFrom( SfxMedium& rMedium )
{
RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScDocShell::LoadFrom" );
LoadMediumGuard aLoadGuard(&aDocument);
- ScRefreshTimerProtector( aDocument.GetRefreshTimerControlAddress() );
+ ScRefreshTimerProtector aProt( aDocument.GetRefreshTimerControlAddress() );
WaitObject aWait( GetActiveDialogParent() );
@@ -1019,7 +1019,7 @@ sal_Bool ScDocShell::ConvertFrom( SfxMedium& rMedium )
sal_Bool bRet = false; // sal_False heisst Benutzerabbruch !!
// bei Fehler: Fehler am Stream setzen!!
- ScRefreshTimerProtector( aDocument.GetRefreshTimerControlAddress() );
+ ScRefreshTimerProtector aProt( aDocument.GetRefreshTimerControlAddress() );
GetUndoManager()->Clear();
@@ -1560,7 +1560,7 @@ sal_Bool ScDocShell::Save()
{
RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScDocShell::Save" );
- ScRefreshTimerProtector( aDocument.GetRefreshTimerControlAddress() );
+ ScRefreshTimerProtector aProt( aDocument.GetRefreshTimerControlAddress() );
PrepareSaveGuard aPrepareGuard( *this);
@@ -1590,7 +1590,7 @@ sal_Bool ScDocShell::SaveAs( SfxMedium& rMedium )
}
- ScRefreshTimerProtector( aDocument.GetRefreshTimerControlAddress() );
+ ScRefreshTimerProtector aProt( aDocument.GetRefreshTimerControlAddress() );
PrepareSaveGuard aPrepareGuard( *this);
@@ -2103,7 +2103,7 @@ sal_Bool ScDocShell::ConvertTo( SfxMedium &rMed )
{
RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScDocShell::ConvertTo" );
- ScRefreshTimerProtector( aDocument.GetRefreshTimerControlAddress() );
+ ScRefreshTimerProtector aProt( aDocument.GetRefreshTimerControlAddress() );
// #i6500# don't call DoEnterHandler here (doesn't work with AutoSave),
// it's already in ExecuteSave (as for Save and SaveAs)
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index a0205408dbd5..1f0ea75504e7 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -220,7 +220,7 @@ void ScPreview::TestLastPage()
void ScPreview::CalcPages()
{
- WaitObject( this );
+ WaitObject aWait( this );
ScDocument* pDoc = pDocShell->GetDocument();
nTabCount = pDoc->GetTableCount();