diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-18 16:12:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-19 08:55:21 +0200 |
commit | 96710f8e466d44047ea4ac9cb8c70dc7664f5c73 (patch) | |
tree | 8c3eb8c7aaf1eec6c6248502e1fc8b43f9dc18a9 /editeng | |
parent | e80b9f344aeb88bdbb42d846c0a094d86ee327dc (diff) |
convert OUString::match to OUString::endsWith
Convert code like:
rTxt.match( "---", rTxt.getLength()-3 )
to:
rTxt.endsWith( "---" )
Change-Id: Iada74c5e714f7234f25b326526843a36255d5599
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 320a9994f595..f6c935e6e417 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1322,8 +1322,7 @@ SvxAutoCorrect::DoAutoCorrect( SvxAutoCorrDoc& rDoc, const OUString& rTxt, // since LibO 4.1, '-' is a word separator // fdo#67742 avoid "--" to be replaced by "–" if next is "-" - if( rTxt.getLength() >= 3 && - rTxt.match( OUString("---"), rTxt.getLength()-3 ) ) + if( rTxt.endsWith( "---" ) ) break; bool bChgWord = rDoc.ChgAutoCorrWord( nCapLttrPos, nInsPos, *this, pPara ); |