From 956cf66cda7b89838f0979cc12025d88757576f4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 13 Sep 2012 13:34:22 +0200 Subject: -Werror,-Wunused-value Change-Id: I1c898a6b3547be0aae5e82cd095ecdcb92bba7ce --- binfilter/bf_sc/source/ui/docshell/sc_docsh.cxx | 4 ++-- binfilter/bf_sw/source/core/unocore/sw_unotbl.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/binfilter/bf_sc/source/ui/docshell/sc_docsh.cxx b/binfilter/bf_sc/source/ui/docshell/sc_docsh.cxx index 0441b17a4..d9cd6e6f2 100644 --- a/binfilter/bf_sc/source/ui/docshell/sc_docsh.cxx +++ b/binfilter/bf_sc/source/ui/docshell/sc_docsh.cxx @@ -412,7 +412,7 @@ static const sal_Char pFilterRtf[] = "Rich Text Format (StarCalc)"; /*N*/ { /*N*/ RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScDocShell::Load" ); /*N*/ -/*N*/ ScRefreshTimerProtector( aDocument.GetRefreshTimerControlAddress() ); +/*N*/ ScRefreshTimerProtector aProt( aDocument.GetRefreshTimerControlAddress() ); /*N*/ /*N*/ DBG_ASSERT( pStor, "Load without storage?" ); /*N*/ BOOL bXML = ( pStor->GetVersion() >= SOFFICE_FILEFORMAT_60 ); @@ -486,7 +486,7 @@ static const sal_Char pFilterRtf[] = "Rich Text Format (StarCalc)"; /*N*/ BOOL bRet = FALSE; // FALSE heisst Benutzerabbruch !! /*N*/ // bei Fehler: Fehler am Stream setzen!! /*N*/ -/*N*/ ScRefreshTimerProtector( aDocument.GetRefreshTimerControlAddress() ); +/*N*/ ScRefreshTimerProtector aProt( aDocument.GetRefreshTimerControlAddress() ); /*N*/ /*N*/ // ob nach dem Import optimale Spaltenbreiten gesetzt werden sollen /*N*/ BOOL bSetColWidths = FALSE; diff --git a/binfilter/bf_sw/source/core/unocore/sw_unotbl.cxx b/binfilter/bf_sw/source/core/unocore/sw_unotbl.cxx index 95cf3c8c2..7bd0149d4 100644 --- a/binfilter/bf_sw/source/core/unocore/sw_unotbl.cxx +++ b/binfilter/bf_sw/source/core/unocore/sw_unotbl.cxx @@ -2813,7 +2813,7 @@ void SwXTextTable::setPropertyValue(const OUString& rPropertyName, break; case FN_UNO_TABLE_COLUMN_SEPARATORS: { - UnoActionContext(pFmt->GetDoc()); + UnoActionContext aContext(pFmt->GetDoc()); lcl_SetTblSeparators(aValue, sal_False); } break; -- cgit v1.2.3