diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2012-12-10 23:57:10 -0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-11 12:21:44 +0000 |
commit | 3472541ab7118ad6c81cd401ce9018be7c662659 (patch) | |
tree | eb7d8c205e9962b999ace224b265617555994cc6 /uui/source/newerverwarn.cxx | |
parent | e6ba54ceb8ac402570a126922d42db0a8341fc2b (diff) |
Remove RTL_* from uui
Change-Id: I411133e81a9b548aaef2333c705c1376f45304d7
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/1294
Reviewed-by: Luboš Luňák <l.lunak@suse.cz>
Tested-by: Luboš Luňák <l.lunak@suse.cz>
Diffstat (limited to 'uui/source/newerverwarn.cxx')
-rw-r--r-- | uui/source/newerverwarn.cxx | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/uui/source/newerverwarn.cxx b/uui/source/newerverwarn.cxx index d7c8b966210e..02a9a3272710 100644 --- a/uui/source/newerverwarn.cxx +++ b/uui/source/newerverwarn.cxx @@ -46,8 +46,6 @@ namespace container = ::com::sun::star::container; using namespace com::sun::star::system; -#define DEFINE_CONST_UNICODE( CONSTASCII ) ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( CONSTASCII ) ) - namespace uui { @@ -78,18 +76,18 @@ NewerVersionWarningDialog::~NewerVersionWarningDialog() IMPL_LINK_NOARG(NewerVersionWarningDialog, UpdateHdl) { // detect execute path - ::rtl::OUString sProgramPath; + OUString sProgramPath; osl_getExecutableFile( &sProgramPath.pData ); sal_uInt32 nLastIndex = sProgramPath.lastIndexOf( '/' ); if ( nLastIndex > 0 ) sProgramPath = sProgramPath.copy( 0, nLastIndex + 1 ); // read keys from soffice.ini (sofficerc) - ::rtl::OUString sIniFileName = sProgramPath; - sIniFileName += ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SAL_CONFIGFILE( "version" ) ) ); + OUString sIniFileName = sProgramPath; + sIniFileName += OUString( SAL_CONFIGFILE( "version" ) ); ::rtl::Bootstrap aIniFile( sIniFileName ); - ::rtl::OUString sNotifyURL; - aIniFile.getFrom( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ODFNotifyURL" ) ), sNotifyURL ); + OUString sNotifyURL; + aIniFile.getFrom( OUString( "ODFNotifyURL" ), sNotifyURL ); try { @@ -112,16 +110,16 @@ IMPL_LINK_NOARG(NewerVersionWarningDialog, UpdateHdl) aContext.createComponent( "com.sun.star.setup.UpdateCheckConfig" ), uno::UNO_QUERY_THROW ); sal_Bool bUpdateCheckEnabled = sal_False; - OSL_VERIFY( xUpdateConfig->getByName( DEFINE_CONST_UNICODE( "AutoCheckEnabled" ) ) >>= bUpdateCheckEnabled ); + OSL_VERIFY( xUpdateConfig->getByName( OUString( "AutoCheckEnabled" ) ) >>= bUpdateCheckEnabled ); // TODO: do we need to respect the bUpdateCheckEnabled flag? Finally, its meaning is "are automatic // updates enabled", but this here is not an automatic update, but one triggered explicitly by the user. uno::Any aVal = ::comphelper::ConfigurationHelper::readDirectKey( aContext.getUNOContext(), - DEFINE_CONST_UNICODE("org.openoffice.Office.Addons/"), - DEFINE_CONST_UNICODE("AddonUI/OfficeHelp/UpdateCheckJob"), - DEFINE_CONST_UNICODE("URL"), + "org.openoffice.Office.Addons/", + "AddonUI/OfficeHelp/UpdateCheckJob", + "URL", ::comphelper::ConfigurationHelper::E_READONLY ); util::URL aURL; if ( aVal >>= aURL.Complete ) |