Cppcheck: scope reduction & unused variables

This commit is contained in:
ngosang
2015-05-14 13:22:36 +02:00
parent baa586a6f7
commit 4b3d3f6ea6
4 changed files with 12 additions and 17 deletions

View File

@@ -183,9 +183,7 @@ void 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)