Cppcheck: scope reduction & unused variables

This commit is contained in:
ngosang 2015-05-14 13:22:36 +02:00
parent 8897001567
commit 3eb61cfe83
3 changed files with 3 additions and 7 deletions

View file

@ -145,9 +145,7 @@ void Utils::Misc::shutdownComputer(ShutdownAction action)
AppleEvent eventReply = {typeNull, NULL};
AppleEvent appleEventToSend = {typeNull, NULL};
OSStatus error = noErr;
error = AECreateDesc(typeProcessSerialNumber, &kPSNOfSystemProcess,
OSStatus error = AECreateDesc(typeProcessSerialNumber, &kPSNOfSystemProcess,
sizeof(kPSNOfSystemProcess), &targetDesc);
if (error != noErr)