diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-09-09 23:35:25 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-13 11:30:48 +0000 |
commit | 3e55e00662b50b02c289ca4a1d94d4306bd8c86b (patch) | |
tree | 8d8f33abc07e0f78bfcd8e291e81fcc307918912 /linguistic/source/dlistimp.cxx | |
parent | 06bdd144eaf504b87cc918c4debf76bdeadea735 (diff) |
String to OUString
This removes nearly all ToLowerAscii() calls.
Conflicts:
linguistic/source/convdic.cxx
linguistic/source/convdiclist.cxx
linguistic/source/dlistimp.cxx
sc/source/filter/html/htmlexp.cxx
Change-Id: Iddcaacfb7383e1df3d2f13751a3c788eba953fdd
Reviewed-on: https://gerrit.libreoffice.org/5895
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'linguistic/source/dlistimp.cxx')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index ec7853bb477b..45db2012f9ee 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -324,8 +324,7 @@ void DicList::SearchForDictionaries( { // When not sal_Int32 nPos = aURL.indexOf('.'); - OUString aExt(aURL.copy(nPos + 1)); - aExt = aExt.toAsciiLowerCase(); + OUString aExt( aURL.copy(nPos + 1).toAsciiLowerCase() ); if (aDCN.equals(aExt)) // negativ bNeg = sal_True; @@ -870,10 +869,9 @@ static sal_Bool IsVers2OrNewer( const OUString& rFileURL, sal_uInt16& nLng, sal_ OUString aExt; sal_Int32 nPos = rFileURL.lastIndexOf( '.' ); if (-1 != nPos) - aExt = rFileURL.copy( nPos + 1 ); - aExt = aExt.toAsciiLowerCase(); + aExt = rFileURL.copy( nPos + 1 ).toAsciiLowerCase(); - if (!aDIC.equals(aExt)) + if (aDIC != aExt) return sal_False; // get stream to be used |