From f9a6d8255240c5841746400de7c9ed6a170e6f53 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 8 Jun 2016 14:44:01 +0200 Subject: remove "trying to resize readonly stream" warning some of code appears to rely on this clamping behaviour for correct functioning Change-Id: I3448994967cdc7631476a947fac0c0dda55181d3 --- sot/source/sdstor/stgdir.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sot') diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx index 7f1230ccbbb1..dacd8909d586 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 -- cgit