[Libreoffice-commits] .: 2 commits - binfilter/bf_sc binfilter/bf_sw

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Sep 13 04:35:43 PDT 2012


 binfilter/bf_sc/source/ui/docshell/sc_docsh.cxx   |    4 ++--
 binfilter/bf_sw/source/core/swg/sw_rdfmts.cxx     |    2 +-
 binfilter/bf_sw/source/core/unocore/sw_unotbl.cxx |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 6d81663a63d209db10fc67d875e054b27d7e45b8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Sep 13 13:35:07 2012 +0200

    -Werror,-Wsometimes-uninitialized
    
    Change-Id: Id0bcdba15ebb278de1af8b782c906765aaa2900b

diff --git a/binfilter/bf_sw/source/core/swg/sw_rdfmts.cxx b/binfilter/bf_sw/source/core/swg/sw_rdfmts.cxx
index 881931e..596bfac 100644
--- a/binfilter/bf_sw/source/core/swg/sw_rdfmts.cxx
+++ b/binfilter/bf_sw/source/core/swg/sw_rdfmts.cxx
@@ -191,7 +191,7 @@ SwFmt* SwSwgReader::InFormat( SwFmt* pFmt, USHORT* pParentId )
     BYTE nHelpFid = (BYTE) nHelpFileId;
     USHORT nHelpId = USHRT_MAX;
     BYTE cFlags;
-    USHORT nFmtId;
+    USHORT nFmtId(IDX_NO_VALUE);
     if( cFmtKind == SWG_FLYFMT ) nFlyLevel++;
     nFmtLvl++;
 
commit 956cf66cda7b89838f0979cc12025d88757576f4
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Sep 13 13:34:22 2012 +0200

    -Werror,-Wunused-value
    
    Change-Id: I1c898a6b3547be0aae5e82cd095ecdcb92bba7ce

diff --git a/binfilter/bf_sc/source/ui/docshell/sc_docsh.cxx b/binfilter/bf_sc/source/ui/docshell/sc_docsh.cxx
index 0441b17..d9cd6e6 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 95cf3c8..7bd0149 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;


More information about the Libreoffice-commits mailing list