diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-03 09:44:24 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-03-06 17:56:22 +0100 |
commit | 68f29d2a899a78b60f9600c2878052aa81728a4b (patch) | |
tree | 3ca87cb09dfc085958a30f4def5411707373e872 | |
parent | 7198c0f14c8059d602b91685317ccbc7f2e8bfbc (diff) |
ofz#721 use vector::at to check index
Change-Id: I786b5d6fb10afe3ebb8482f999115fe72ffe2d4c
Reviewed-on: https://gerrit.libreoffice.org/34853
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit f8de39789767f58c03b149371388a92722cb0427)
-rw-r--r-- | lotuswordpro/source/filter/lwpidxmgr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpidxmgr.cxx b/lotuswordpro/source/filter/lwpidxmgr.cxx index 8d02521b0585..94cd789e8fd0 100644 --- a/lotuswordpro/source/filter/lwpidxmgr.cxx +++ b/lotuswordpro/source/filter/lwpidxmgr.cxx @@ -194,7 +194,7 @@ void LwpIndexManager::ReadObjIndexData(LwpObjectStream* pObjStrm) std::vector<LwpKey*> vObjIndexs; - if(KeyCount) + if (KeyCount) { LwpKey* akey = new LwpKey(); akey->id.Read(pObjStrm); @@ -218,7 +218,7 @@ void LwpIndexManager::ReadObjIndexData(LwpObjectStream* pObjStrm) for( sal_uInt16 j=0; j<LeafCount; j++ ) { - sal_Int64 nPos = m_TempVec[j]+LwpSvStream::LWP_STREAM_BASE; + sal_Int64 nPos = m_TempVec.at(j) + LwpSvStream::LWP_STREAM_BASE; sal_Int64 nActualPos = pObjStrm->GetStream()->Seek(nPos); if (nPos != nActualPos) |