Mac specific changes by Stephanos Antaris

This commit is contained in:
Christophe Dumez 2010-08-17 10:50:14 +00:00
parent 0e9abc1762
commit 2cd4937ddc
2 changed files with 6 additions and 5 deletions

View file

@ -54,6 +54,7 @@ const int UNLEN = 256;
#ifdef Q_WS_MAC
#include <CoreServices/CoreServices.h>
#include <Carbon/Carbon.h>
#endif
#ifndef Q_WS_WIN
@ -210,7 +211,7 @@ void misc::shutdownComputer() {
if (error != noErr)
{
return(error);
return;
}
error = AECreateAppleEvent(kCoreEventClass, EventToSend, &targetDesc,
@ -219,7 +220,7 @@ void misc::shutdownComputer() {
AEDisposeDesc(&targetDesc);
if (error != noErr)
{
return(error);
return;
}
error = AESend(&appleEventToSend, &eventReply, kAENoReply,
@ -228,7 +229,7 @@ void misc::shutdownComputer() {
AEDisposeDesc(&appleEventToSend);
if (error != noErr)
{
return(error);
return;
}
AEDisposeDesc(&eventReply);