diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-10 16:34:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-09-11 09:45:40 +0200 |
commit | b2ff26cc4e9a012b67c7244ee75ab98898d02827 (patch) | |
tree | e08992473ecfffbdf1e834c3af1d14fc3625e471 /linguistic/source/misc2.cxx | |
parent | f9ce731120f2e308e8fe71eb1a1d981590362afb (diff) |
convert include/linguistic/misc.hxx from String to OUString
Change-Id: I454c577d7b6c0994046de9cba076e6478a4ce309
Diffstat (limited to 'linguistic/source/misc2.cxx')
-rw-r--r-- | linguistic/source/misc2.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linguistic/source/misc2.cxx b/linguistic/source/misc2.cxx index eab239de6f03..726493ebb3b9 100644 --- a/linguistic/source/misc2.cxx +++ b/linguistic/source/misc2.cxx @@ -41,10 +41,10 @@ namespace linguistic { -sal_Bool FileExists( const String &rMainURL ) +sal_Bool FileExists( const OUString &rMainURL ) { sal_Bool bExists = sal_False; - if (rMainURL.Len()) + if (!rMainURL.isEmpty()) { try { @@ -123,7 +123,7 @@ OUString GetDictionaryWriteablePath() { uno::Sequence< OUString > aPaths( GetMultiPaths_Impl( "Dictionary", PATH_FLAG_WRITABLE ) ); DBG_ASSERT( aPaths.getLength() == 1, "Dictionary_writable path corrupted?" ); - String aRes; + OUString aRes; if (aPaths.getLength() > 0) aRes = aPaths[0]; return aRes; @@ -134,10 +134,10 @@ uno::Sequence< OUString > GetDictionaryPaths( sal_Int16 nPathFlags ) return GetMultiPaths_Impl( "Dictionary", nPathFlags ); } -String GetWritableDictionaryURL( const String &rDicName ) +OUString GetWritableDictionaryURL( const OUString &rDicName ) { // new user writable dictionaries should be created in the 'writable' path - String aDirName( GetDictionaryWriteablePath() ); + OUString aDirName( GetDictionaryWriteablePath() ); // build URL to use for a new (persistent) dictionary INetURLObject aURLObj; |