diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-02-22 15:35:41 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-02-22 16:21:37 +0100 |
commit | f150ed241ff796a25bd1a797155104198b415f18 (patch) | |
tree | bce5481ac1cd29b781ad73c2eb5a7606c49f5da2 /desktop | |
parent | force imported xlsx active tab to be shown bnc#748198 (diff) | |
download | core-f150ed241ff796a25bd1a797155104198b415f18.tar.gz core-f150ed241ff796a25bd1a797155104198b415f18.zip |
OUString ctor for string literals without RTL_CONSTASCII stuff
http://lists.freedesktop.org/archives/libreoffice/2012-February/025662.html
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/inc/dp_misc.h | 18 | ||||
-rw-r--r-- | desktop/source/deployment/registry/configuration/dp_configuration.cxx | 4 |
2 files changed, 2 insertions, 20 deletions
diff --git a/desktop/source/deployment/inc/dp_misc.h b/desktop/source/deployment/inc/dp_misc.h index 9e912531e9f8..29fd14007d71 100644 --- a/desktop/source/deployment/inc/dp_misc.h +++ b/desktop/source/deployment/inc/dp_misc.h @@ -128,15 +128,6 @@ oslProcess raiseProcess( ::rtl::OUString const & appURL, DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void writeConsole(::rtl::OUString const & sText); -/** writes the argument string to the console. - On Linux/Unix/etc. the string is passed into fprintf without any conversion. - On Windows the string is converted to UTF16 assuming the argument is UTF8 - encoded. The UTF16 string is written to stdout with WriteFile. unopkg.com - reads the data and prints them out using WriteConsoleW. -*/ -DESKTOP_DEPLOYMENTMISC_DLLPUBLIC -void writeConsole(::rtl::OString const & sText); - /** writes the argument to the console using the error stream. Otherwise the same as writeConsole. */ @@ -144,13 +135,6 @@ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void writeConsoleError(::rtl::OUString const & sText); -/** writes the argument to the console using the error stream. - Otherwise the same as writeConsole. -*/ -DESKTOP_DEPLOYMENTMISC_DLLPUBLIC -void writeConsoleError(::rtl::OString const & sText); - - /** reads from the console. On Linux/Unix/etc. it uses fgets to read char values and converts them to OUString using osl_getThreadTextEncoding as target encoding. The returned string has a maximum @@ -165,8 +149,6 @@ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC */ DESKTOP_DEPLOYMENTMISC_DLLPUBLIC void TRACE(::rtl::OUString const & sText); -DESKTOP_DEPLOYMENTMISC_DLLPUBLIC -void TRACE(::rtl::OString const & sText); /** registers or revokes shared or bundled extensions which have been recently added or removed. diff --git a/desktop/source/deployment/registry/configuration/dp_configuration.cxx b/desktop/source/deployment/registry/configuration/dp_configuration.cxx index 12e5f50984ea..dd1b00b989fa 100644 --- a/desktop/source/deployment/registry/configuration/dp_configuration.cxx +++ b/desktop/source/deployment/registry/configuration/dp_configuration.cxx @@ -244,8 +244,8 @@ BackendImpl::BackendImpl( } catch (const Exception &e) { - rtl::OStringBuffer aStr( "Exception loading legacy package database: '" ); - aStr.append( rtl::OUStringToOString( e.Message, osl_getThreadTextEncoding() ) ); + rtl::OUStringBuffer aStr( "Exception loading legacy package database: '" ); + aStr.append( e.Message ); aStr.append( "' - ignoring file, please remove it.\n" ); dp_misc::writeConsole( aStr.getStr() ); } |