sot/source/sdstor/stgdir.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit f9a6d8255240c5841746400de7c9ed6a170e6f53
Author: Noel Grandin <n...@peralex.com>
Date:   Wed Jun 8 14:44:01 2016 +0200

    remove "trying to resize readonly stream" warning
    
    some of code appears to rely on this clamping behaviour for correct
    functioning
    
    Change-Id: I3448994967cdc7631476a947fac0c0dda55181d3

diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index 7f1230c..dacd890 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -417,13 +417,11 @@ sal_Int32 StgDirEntry::Seek( sal_Int32 nNew )
         if( nNew < 0 )
             nNew = nSize;
 
-        // try to enlarge, the readonly streams should not allow this
+        // try to enlarge, readonly streams do not allow this
         if( nNew > nSize )
         {
             if ( !( m_nMode & StreamMode::WRITE ) || !SetSize( nNew ) )
             {
-                SAL_WARN_IF(!(m_nMode & StreamMode::WRITE), "sot",
-                    "Trying to resize readonly stream by seeking, could be a 
wrong offset: " << nNew);
                 return m_nPos;
             }
             else
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to