summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-28 23:10:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-01 12:20:23 +0000
commitb458e734fda37a01db36ed59127984d65f12a883 (patch)
tree35fbd67b9af2a771ac1738070b4e463d51ba7654 /editeng
parent891a99ce9f5396e752e389d994f794af97dddef6 (diff)
vector::at on guaranteed in-bounds values
Change-Id: I6ca8ec182e4c68f4cc29c7669168b513cdf148bd
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/svxacorr.cxx4
1 files 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 )) &&