summaryrefslogtreecommitdiff
path: root/desktop/source/app
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-04 12:26:31 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 11:21:24 +0200
commit3e70dda33548a5392baaf99a3c4675285de7da46 (patch)
tree4146f3c0155dd31b0a01403e9ceeb716961790e8 /desktop/source/app
parent7e441ef078c31796c5944a160793458f0bcbc2c4 (diff)
remove unnecessary use of OUString constructor in DESKTOP module
Change-Id: I467334094a621f4bab0ff251267412fb3a0fb4b7
Diffstat (limited to 'desktop/source/app')
-rw-r--r--desktop/source/app/app.cxx29
1 files changed, 14 insertions, 15 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index e17ed30713c5..0eb71db1d44e 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -846,8 +846,7 @@ OUString Desktop::CreateErrorMsgString(
case ::utl::Bootstrap::INVALID_VERSION_FILE_ENTRY:
{
// This needs to be improved, see #i67575#:
- aMsg = OUString(
- "Invalid version file entry" );
+ aMsg = "Invalid version file entry";
bFileInfo = sal_False;
}
break;
@@ -1548,7 +1547,7 @@ int Desktop::Main()
pExecGlobals->pLanguageOptions.reset( new SvtLanguageOptions(sal_True));
css::document::EventObject aEvent;
- aEvent.EventName = OUString("OnStartApp");
+ aEvent.EventName = "OnStartApp";
pExecGlobals->xGlobalBroadcaster->notifyEvent(aEvent);
SetSplashScreenProgress(50);
@@ -1766,7 +1765,7 @@ int Desktop::doShutdown()
if (pExecGlobals->xGlobalBroadcaster.is())
{
css::document::EventObject aEvent;
- aEvent.EventName = OUString("OnCloseApp");
+ aEvent.EventName = "OnCloseApp";
pExecGlobals->xGlobalBroadcaster->notifyEvent(aEvent);
}
@@ -2049,7 +2048,7 @@ void Desktop::EnableOleAutomation()
void Desktop::PreloadModuleData( const CommandLineArgs& rArgs )
{
Sequence < com::sun::star::beans::PropertyValue > args(1);
- args[0].Name = OUString("Hidden");
+ args[0].Name = "Hidden";
args[0].Value <<= sal_True;
Reference < XDesktop2 > xDesktop = css::frame::Desktop::create( ::comphelper::getProcessComponentContext() );
@@ -2362,7 +2361,7 @@ void Desktop::OpenClients()
Reference< css::util::XURLTransformer > xParser = css::util::URLTransformer::create( ::comphelper::getProcessComponentContext() );
css::util::URL aCmd;
- aCmd.Complete = OUString("vnd.sun.star.autorecovery:/disableRecovery");
+ aCmd.Complete = "vnd.sun.star.autorecovery:/disableRecovery";
xParser->parseStrict(aCmd);
xRecovery->dispatch(aCmd, css::uno::Sequence< css::beans::PropertyValue >());
@@ -2796,26 +2795,26 @@ void Desktop::OpenSplashScreen()
// Determine application name from command line parameters
OUString aAppName;
if ( rCmdLine.IsWriter() )
- aAppName = OUString( "writer" );
+ aAppName = "writer";
else if ( rCmdLine.IsCalc() )
- aAppName = OUString( "calc" );
+ aAppName = "calc";
else if ( rCmdLine.IsDraw() )
- aAppName = OUString( "draw" );
+ aAppName = "draw";
else if ( rCmdLine.IsImpress() )
- aAppName = OUString( "impress" );
+ aAppName = "impress";
else if ( rCmdLine.IsBase() )
- aAppName = OUString( "base" );
+ aAppName = "base";
else if ( rCmdLine.IsGlobal() )
- aAppName = OUString( "global" );
+ aAppName = "global";
else if ( rCmdLine.IsMath() )
- aAppName = OUString( "math" );
+ aAppName = "math";
else if ( rCmdLine.IsWeb() )
- aAppName = OUString( "web" );
+ aAppName = "web";
// Which splash to use
OUString aSplashService( "com.sun.star.office.SplashScreen" );
if ( rCmdLine.HasSplashPipe() )
- aSplashService = OUString("com.sun.star.office.PipeSplashScreen");
+ aSplashService = "com.sun.star.office.PipeSplashScreen";
bVisible = sal_True;
Sequence< Any > aSeq( 2 );