summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-03 09:44:24 +0000
committerAndras Timar <andras.timar@collabora.com>2017-03-06 16:08:02 +0100
commit0ada1b83975394bc7ffc429732658f8137ff0d55 (patch)
tree5c2c6bbeb30f9f01c62381a774d2bf9ca1acc4e6 /lotuswordpro
parent48eff6b11d070137409599930c08ef9eecb3bf73 (diff)
ofz#721 use vector::at to check index
Change-Id: I786b5d6fb10afe3ebb8482f999115fe72ffe2d4c Reviewed-on: https://gerrit.libreoffice.org/34852 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit ce562ba091dd7d51a349b0ea56431d1e7fe81ce0)
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpidxmgr.cxx4
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)