Kaydet (Commit) 7f09f384 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

shell: Use appropriate OUString functions on string constants

Change-Id: I3b2c0a4200fa953162f40eff49289052962e73d2
üst 70e56ffe
...@@ -284,12 +284,12 @@ css::uno::Any LocaleBackend::getPropertyValue( ...@@ -284,12 +284,12 @@ css::uno::Any LocaleBackend::getPropertyValue(
return css::uno::makeAny( return css::uno::makeAny(
css::beans::Optional< css::uno::Any >( css::beans::Optional< css::uno::Any >(
true, css::uno::makeAny(getLocale()))); true, css::uno::makeAny(getLocale())));
} else if (PropertyName.equals("SystemLocale")) } else if (PropertyName == "SystemLocale")
{ {
return css::uno::makeAny( return css::uno::makeAny(
css::beans::Optional< css::uno::Any >( css::beans::Optional< css::uno::Any >(
true, css::uno::makeAny(getSystemLocale()))); true, css::uno::makeAny(getSystemLocale())));
} else if (PropertyName.equals("UILocale")) } else if (PropertyName == "UILocale")
{ {
return css::uno::makeAny( return css::uno::makeAny(
css::beans::Optional< css::uno::Any >( css::beans::Optional< css::uno::Any >(
......
...@@ -452,7 +452,7 @@ rtl::OUString SAL_CALL MacOSXBackend::getImplementationName(void) ...@@ -452,7 +452,7 @@ rtl::OUString SAL_CALL MacOSXBackend::getImplementationName(void)
uno::Sequence<rtl::OUString> SAL_CALL MacOSXBackend::getBackendServiceNames(void) uno::Sequence<rtl::OUString> SAL_CALL MacOSXBackend::getBackendServiceNames(void)
{ {
uno::Sequence<rtl::OUString> aServiceNameList(1); uno::Sequence<rtl::OUString> aServiceNameList(1);
aServiceNameList[0] = rtl::OUString( "com.sun.star.configuration.backend.MacOSXBackend"); aServiceNameList[0] = "com.sun.star.configuration.backend.MacOSXBackend";
return aServiceNameList; return aServiceNameList;
} }
......
...@@ -134,7 +134,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar ...@@ -134,7 +134,7 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
if ( aURL.isEmpty() && !aCommand.isEmpty() ) if ( aURL.isEmpty() && !aCommand.isEmpty() )
{ {
throw RuntimeException( throw RuntimeException(
OUString("Cannot translate URI reference to external format: ") "Cannot translate URI reference to external format: "
+ aCommand, + aCommand,
static_cast< cppu::OWeakObject * >(this)); static_cast< cppu::OWeakObject * >(this));
} }
...@@ -224,8 +224,8 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar ...@@ -224,8 +224,8 @@ void SAL_CALL ShellExec::execute( const OUString& aCommand, const OUString& aPar
} else if ((nFlags & css::system::SystemShellExecuteFlags::URIS_ONLY) != 0) } else if ((nFlags & css::system::SystemShellExecuteFlags::URIS_ONLY) != 0)
{ {
throw css::lang::IllegalArgumentException( throw css::lang::IllegalArgumentException(
OUString("XSystemShellExecute.execute URIS_ONLY with non-absolute" "XSystemShellExecute.execute URIS_ONLY with non-absolute"
" URI reference ") " URI reference "
+ aCommand, + aCommand,
static_cast< cppu::OWeakObject * >(this), 0); static_cast< cppu::OWeakObject * >(this), 0);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment