diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-11 00:25:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-12 09:10:02 +0100 |
commit | 0009579f578e7c751057170ab788080e1190802a (patch) | |
tree | 92adcf6cb76c5f0c949607557aa9c1cc245b730b /linguistic | |
parent | 7a9ee7168f7700d10968bdaef58e3e52a54684c4 (diff) |
why insert a '.' just to then erase it ?
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index 075cb8833f8c..191e8092aeac 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -848,10 +848,10 @@ static void AddInternal( { //! TL TODO: word iterator should be used to break up the text static const char aDefWordDelim[] = - "!\"#$%&'()*+,-./:;<=>?[]\\_^`{|}~\t \n"; - String aDelim = - rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(aDefWordDelim)); - aDelim.EraseAllChars( '.' ); + "!\"#$%&'()*+,-/:;<=>?[]\\_^`{|}~\t \n"; + rtl::OUString aDelim(RTL_CONSTASCII_USTRINGPARAM(aDefWordDelim)); + OSL_ENSURE(aDelim.indexOf(static_cast<sal_Unicode>('.')) == -1, + "ensure no '.'"); String aToken; xub_StrLen nPos = 0; |