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

Noel Grandin noel at peralex.com
Fri Jun 3 11:34:05 UTC 2016


 tools/source/generic/poly.cxx  |    2 --
 tools/source/generic/poly2.cxx |    6 ------
 2 files changed, 8 deletions(-)

New commits:
commit 1741c0ff36e57f0629ff360a79b18c2d11bb8092
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Jun 3 13:32:57 2016 +0200

    drop "Solar-Version not set on rIStream" messages
    
    nothing else in our codebase seems to care if we set a version on an
    SvStream
    
    Change-Id: I6c0e78dade5f1e79c4b5bf1ffe2a35d5261b6008

diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 519c9b4..f8df46d 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -1557,8 +1557,6 @@ bool Polygon::IsEqual( const tools::Polygon& rPoly ) const
 
 SvStream& ReadPolygon( SvStream& rIStream, tools::Polygon& rPoly )
 {
-    SAL_WARN_IF( !rIStream.GetVersion(), "tools", "Polygon::>> - Solar-Version not set on rIStream" );
-
     sal_uInt16          i;
     sal_uInt16          nPoints(0);
 
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx
index 35afdd4..08f1bb8 100644
--- a/tools/source/generic/poly2.cxx
+++ b/tools/source/generic/poly2.cxx
@@ -546,8 +546,6 @@ bool PolyPolygon::operator==( const tools::PolyPolygon& rPolyPoly ) const
 
 SvStream& ReadPolyPolygon( SvStream& rIStream, tools::PolyPolygon& rPolyPoly )
 {
-    SAL_WARN_IF( !rIStream.GetVersion(), "tools", "PolyPolygon::>> - Solar-Version not set on rIStream" );
-
     tools::Polygon* pPoly;
     sal_uInt16 nPolyCount(0);
 
@@ -587,8 +585,6 @@ SvStream& ReadPolyPolygon( SvStream& rIStream, tools::PolyPolygon& rPolyPoly )
 
 SvStream& WritePolyPolygon( SvStream& rOStream, const tools::PolyPolygon& rPolyPoly )
 {
-    SAL_WARN_IF( !rOStream.GetVersion(), "tools", "PolyPolygon::<< - Solar-Version not set on rOStream" );
-
     // Write number of polygons
     sal_uInt16 nPolyCount = rPolyPoly.mpImplPolyPolygon->mnCount;
     rOStream.WriteUInt16( nPolyCount );
@@ -604,8 +600,6 @@ void PolyPolygon::Read( SvStream& rIStream )
 {
     VersionCompat aCompat( rIStream, StreamMode::READ );
 
-    SAL_WARN_IF( !rIStream.GetVersion(), "tools","PolyPolygon::>> - Solar-Version not set on rIStream" );
-
     tools::Polygon* pPoly;
     sal_uInt16 nPolyCount(0);
 


More information about the Libreoffice-commits mailing list