diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-02 16:02:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-03 21:24:35 +0100 |
commit | bccf34c19ae022b67565e212fa4ec0d5213947de (patch) | |
tree | 73c2d2e29ad8d15999cbfb2ff554efa1e502a35e /linguistic/source/dlistimp.cxx | |
parent | 285289275d1cf1769080a208b55be984cd269e1e (diff) |
ditch String::CreateFromAscii
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
Diffstat (limited to 'linguistic/source/dlistimp.cxx')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index f5ac64054e0d..d8ef8dd19d86 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -330,8 +330,8 @@ void DicList::SearchForDictionaries( const rtl::OUString *pDirCnt = aDirCnt.getConstArray(); sal_Int32 nEntries = aDirCnt.getLength(); - String aDCN( String::CreateFromAscii( "dcn" ) ); - String aDCP( String::CreateFromAscii( "dcp" ) ); + rtl::OUString aDCN("dcn"); + rtl::OUString aDCP("dcp"); for (sal_Int32 i = 0; i < nEntries; ++i) { String aURL( pDirCnt[i] ); @@ -345,9 +345,9 @@ void DicList::SearchForDictionaries( String aExt(aURL.Copy(nPos + 1)); aExt.ToLowerAscii(); - if(aExt == aDCN) // negativ + if (aDCN.equals(aExt)) // negativ bNeg = sal_True; - else if(aExt == aDCP) // positiv + else if (aDCP.equals(aExt)) // positiv bNeg = sal_False; else continue; // andere Files @@ -889,14 +889,14 @@ static sal_Bool IsVers2OrNewer( const String& rFileURL, sal_uInt16& nLng, sal_Bo { if (rFileURL.Len() == 0) return sal_False; - String aDIC( GetDicExtension() ); + rtl::OUString aDIC("dic"); String aExt; xub_StrLen nPos = rFileURL.SearchBackward( '.' ); if (STRING_NOTFOUND != nPos) aExt = rFileURL.Copy( nPos + 1 ); aExt.ToLowerAscii(); - if(aExt != aDIC) + if (!aDIC.equals(aExt)) return sal_False; // get stream to be used |