summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-03 09:44:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-04-03 19:46:21 +0000
commit9aff1789e021c29ef819ad67776bab60e995bddc (patch)
tree532c52e9e99b6810294511afa871d431f8494b77 /lotuswordpro
parent3feabd87ad8066b45b55d61cd72684e47fd79082 (diff)
ofz#721 use vector::at to check index
Change-Id: I786b5d6fb10afe3ebb8482f999115fe72ffe2d4c Reviewed-on: https://gerrit.libreoffice.org/34851 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
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 7c03e8733b65..df8419c7e431 100644
--- a/lotuswordpro/source/filter/lwpidxmgr.cxx
+++ b/lotuswordpro/source/filter/lwpidxmgr.cxx
@@ -177,7 +177,7 @@ void LwpIndexManager::ReadObjIndexData(LwpObjectStream* pObjStrm)
std::vector<LwpKey> vObjIndexs;
- if(KeyCount)
+ if (KeyCount)
{
LwpKey akey;
akey.id.Read(pObjStrm);
@@ -200,7 +200,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)