diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-08 14:44:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-06-08 14:44:27 +0200 |
commit | f9a6d8255240c5841746400de7c9ed6a170e6f53 (patch) | |
tree | 0ddda56bcdd1dc4eade2f57ef2d2e6f4e6c184dd /sot | |
parent | e07f23b148fe95b2418cb9dc5f1d335db8713c9f (diff) |
remove "trying to resize readonly stream" warning
some of code appears to rely on this clamping behaviour for correct
functioning
Change-Id: I3448994967cdc7631476a947fac0c0dda55181d3
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgdir.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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 |