mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Merge pull request #3004 from ngosang/cppcheck_fixes
Cppcheck: scope reduction & unused variables
This commit is contained in:
commit
4d848e99f0
3 changed files with 3 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue