From b458e734fda37a01db36ed59127984d65f12a883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 28 Feb 2013 23:10:33 +0000 Subject: [PATCH] vector::at on guaranteed in-bounds values Change-Id: I6ca8ec182e4c68f4cc29c7669168b513cdf148bd --- editeng/source/misc/svxacorr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 2880651450a9..e0a018029b04 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -393,8 +393,8 @@ sal_Bool SvxAutoCorrect::FnCptlSttWrd( SvxAutoCorrDoc& rDoc, const String& rTxt, // Two capital letters at the beginning of word? for(n = 0; n < aDelimiters.size() - 1; n++) { - nSttPos = aDelimiters.at( n ); - nEndPos = aDelimiters.at( n + 1 ); + nSttPos = aDelimiters[n]; + nEndPos = aDelimiters[n + 1]; if( nSttPos+2 < nEndPos && IsUpperLetter( rCC.getCharacterType( rTxt, nSttPos )) &&