[Libreoffice-commits] core.git: 2 commits - sfx2/source tools/source

Caolán McNamara caolanm at redhat.com
Wed Nov 11 09:21:43 PST 2015


 sfx2/source/doc/objxtor.cxx    |    1 +
 tools/source/generic/poly.cxx  |    2 --
 tools/source/generic/poly2.cxx |    2 --
 3 files changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 8557a8a74dc692ef7ec83d95413ddc3186aa0695
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Nov 11 17:20:46 2015 +0000

    coverity#1338604 Uninitialized scalar field
    
    Change-Id: Ifb5bdfe677127911303455735997fcf271e80aa6

diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index 55322b1..d9523d5 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -237,6 +237,7 @@ SfxObjectShell_Impl::SfxObjectShell_Impl( SfxObjectShell& _rDocShell )
     ,bQueryLoadTemplate( true )
     ,bLoadReadonly( false )
     ,bUseUserData( true )
+    ,bUseThumbnailSave( true )
     ,bSaveVersionOnClose( false )
     ,m_bSharedXMLFlag( false )
     ,m_bAllowShareControlFileClean( true )
commit d7627da5c9b0b351e8150b08febf64273ba0231e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Nov 11 13:25:33 2015 +0000

    stream version doesn't matter here
    
    Change-Id: I318b0268143bef376f324afdd42692991c3bab4c

diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index c92895e..ada7051 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -1586,8 +1586,6 @@ SvStream& ReadPolygon( SvStream& rIStream, tools::Polygon& rPoly )
 
 SvStream& WritePolygon( SvStream& rOStream, const tools::Polygon& rPoly )
 {
-    SAL_WARN_IF( !rOStream.GetVersion(), "tools", "Polygon::<< - Solar-Version not set on rOStream" );
-
     sal_uInt16          i;
     sal_uInt16          nPoints = rPoly.GetSize();
 
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx
index 80ace37..65db27e 100644
--- a/tools/source/generic/poly2.cxx
+++ b/tools/source/generic/poly2.cxx
@@ -645,8 +645,6 @@ void PolyPolygon::Write( SvStream& rOStream ) const
 {
     VersionCompat aCompat( rOStream, StreamMode::WRITE, 1 );
 
-    SAL_WARN_IF( !rOStream.GetVersion(), "tools", "PolyPolygon::<< - Solar-Version not set on rOStream" );
-
     // Write number of polygons
     sal_uInt16 nPolyCount = mpImplPolyPolygon->mnCount;
     rOStream.WriteUInt16( nPolyCount );


More information about the Libreoffice-commits mailing list