diff options
author | László Németh <nemeth@numbertext.org> | 2013-08-21 13:25:35 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2013-08-21 13:25:35 +0200 |
commit | 6616e1e4eb1505effbd0a5920dade781bd7938db (patch) | |
tree | 536b15eb2789eb5c090d6280679e5191d7866447 /editeng | |
parent | 26c4d2f5bde513f05c58718ba1c468be4a6bfc86 (diff) |
fdo#68373 fix comments
Change-Id: Id65e819fd1172a28b2cb0bafbd7763313c5fcf50
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 802297313dea..adfad5860443 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -2726,7 +2726,7 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p return pFnd; } } - // match "word*" pattern + // match "word*" patterns, eg. "i18n*" if ( rChk.GetChar( rChk.Len() - 1) == C_ASTERISK ) { String sTmp( rChk.Copy( 0, rChk.Len() - 1 ) ); @@ -2737,7 +2737,7 @@ const SvxAutocorrWord* SvxAutocorrWordList::WordMatches(const SvxAutocorrWord *p } while ( nFndPos != STRING_NOTFOUND && !(!nFndPos || IsWordDelim( rTxt.GetChar( nFndPos - 1 )))); if ( nFndPos != STRING_NOTFOUND ) { - // store matching pattern and its replacement as a new list item, eg. "wordi" -> "wordy" + // store matching pattern and its replacement as a new list item, eg. "i18ns" -> "internationalizations" SvxAutocorrWord* pNew = new SvxAutocorrWord(OUString(rTxt.GetBuffer() + nFndPos, nEndPos - nFndPos), pFnd->GetLong() + OUString(rTxt.GetBuffer() + nFndPos + sTmp.Len(), nEndPos - nFndPos - sTmp.Len())); if( Insert( pNew ) ) { |