diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 15:13:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 15:43:46 +0200 |
commit | 1edb2a1040a7f71e8ac5e4e8e8df176b18b37d07 (patch) | |
tree | 6d325c4a155655a4cb218cee80c9f9696af7f55b /sot | |
parent | bdf9ece338b3e50ddb17b4f94fb9e7f7d8e54398 (diff) |
clang-analyzer-deadcode.DeadStores
...introduced with dc5383e2fa487a7599f2e317bba409dc3cde8339 "fdo#84229 - don't
set error when seeking beyond end of valid data."
Change-Id: Ic26872ce47ff27a0e1170ebc66cdf10587334192
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgstrms.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx index c913bebc9e0e..2471c005b000 100644 --- a/sot/source/sdstor/stgstrms.cxx +++ b/sot/source/sdstor/stgstrms.cxx @@ -431,12 +431,13 @@ bool StgStrm::Pos2Page( sal_Int32 nBytePos ) SAL_WARN("sot", "seek to index " << nIdx << " beyond page cache size " << m_aPagesCache.size()); // fdo#84229 - handle seek to end and back as eg. XclImpStream expects - nIdx = m_aPagesCache.size(); nPage = STG_EOF; nOffset = 0; // Intriguingly in the past we didn't reset nPos to match the real - // length of the stream thus: nPos = nPageSize * nIdx; so retain - // this behavior for now. + // length of the stream thus: + // nIdx = m_aPagesCache.size(); + // nPos = nPageSize * nIdx; + // so retain this behavior for now. return false; } |