summaryrefslogtreecommitdiff
path: root/vcl/aqua/source/app/vclnsapp.mm
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-11-03 16:50:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2011-11-04 08:21:25 +0100
commite04249337551653f63ba9b2a2302578961e38562 (patch)
treec8780254acf0b87c16f47725657a0b8c38871bfe /vcl/aqua/source/app/vclnsapp.mm
parentfb17dce09e29c4518129587d347cc3787f74c396 (diff)
String->OUString, remove unused code
Diffstat (limited to 'vcl/aqua/source/app/vclnsapp.mm')
-rw-r--r--vcl/aqua/source/app/vclnsapp.mm18
1 files changed, 7 insertions, 11 deletions
diff --git a/vcl/aqua/source/app/vclnsapp.mm b/vcl/aqua/source/app/vclnsapp.mm
index 612aca6e37bb..e2da47c8bc5b 100644
--- a/vcl/aqua/source/app/vclnsapp.mm
+++ b/vcl/aqua/source/app/vclnsapp.mm
@@ -314,8 +314,7 @@
const rtl::OUString aFile( GetOUString( pFile ) );
if( ! AquaSalInstance::isOnCommandLine( aFile ) )
{
- const ApplicationEvent* pAppEvent = new ApplicationEvent( String(), ApplicationAddress(),
- APPEVENT_OPEN_STRING, aFile );
+ const ApplicationEvent* pAppEvent = new ApplicationEvent(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(APPEVENT_OPEN_STRING)), aFile);
AquaSalInstance::aAppEventList.push_back( pAppEvent );
}
return YES;
@@ -335,7 +334,7 @@
if( ! AquaSalInstance::isOnCommandLine( aFile ) )
{
if( aFileList.getLength() > 0 )
- aFileList.append( sal_Unicode( APPEVENT_PARAM_DELIMITER ) );
+ aFileList.append('\n');
aFileList.append( aFile );
}
}
@@ -345,8 +344,7 @@
// we have no back channel here, we have to assume success, in which case
// replyToOpenOrPrint does not need to be called according to documentation
// [app replyToOpenOrPrint: NSApplicationDelegateReplySuccess];
- const ApplicationEvent* pAppEvent = new ApplicationEvent( String(), ApplicationAddress(),
- APPEVENT_OPEN_STRING, aFileList.makeStringAndClear() );
+ const ApplicationEvent* pAppEvent = new ApplicationEvent(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(APPEVENT_OPEN_STRING)), aFileList.makeStringAndClear());
AquaSalInstance::aAppEventList.push_back( pAppEvent );
}
}
@@ -355,8 +353,7 @@
{
(void)app;
const rtl::OUString aFile( GetOUString( pFile ) );
- const ApplicationEvent* pAppEvent = new ApplicationEvent( String(), ApplicationAddress(),
- APPEVENT_PRINT_STRING, aFile );
+ const ApplicationEvent* pAppEvent = new ApplicationEvent(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(APPEVENT_PRINT_STRING)), aFile);
AquaSalInstance::aAppEventList.push_back( pAppEvent );
return YES;
}
@@ -374,11 +371,10 @@
while( (pFile = [it nextObject]) != nil )
{
if( aFileList.getLength() > 0 )
- aFileList.append( sal_Unicode( APPEVENT_PARAM_DELIMITER ) );
+ aFileList.append('\n');
aFileList.append( GetOUString( pFile ) );
}
- const ApplicationEvent* pAppEvent = new ApplicationEvent( String(), ApplicationAddress(),
- APPEVENT_PRINT_STRING, aFileList.makeStringAndClear() );
+ const ApplicationEvent* pAppEvent = new ApplicationEvent(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(APPEVENT_PRINT_STRING)), aFileList.makeStringAndClear());
AquaSalInstance::aAppEventList.push_back( pAppEvent );
// we have no back channel here, we have to assume success
// correct handling would be NSPrintingReplyLater and then send [app replyToOpenOrPrint]
@@ -402,7 +398,7 @@
if( aReply == NSTerminateNow )
{
- ApplicationEvent aEv( String(), ApplicationAddress(), ByteString( "PRIVATE:DOSHUTDOWN" ), String() );
+ ApplicationEvent aEv(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("PRIVATE:DOSHUTDOWN")));
GetpApp()->AppEvent( aEv );
ImplImageTreeSingletonRef()->shutDown();
// DeInitVCL should be called in ImplSVMain - unless someon _exits first which