Fixed most issues from codacy (#3050)

This commit is contained in:
ctrlaltca
2018-01-27 19:31:44 +01:00
committed by Zach H
parent 3c3e6ae68a
commit e127cb74b6
16 changed files with 26 additions and 33 deletions

View File

@@ -426,7 +426,7 @@ void Server::externalJoinGameCommandReceived(const Command_JoinGame &cmd,
ResponseContainer responseContainer(cmdId);
Response::ResponseCode responseCode = room->processJoinGameCommand(cmd, responseContainer, userInterface);
userInterface->sendResponseContainer(responseContainer, responseCode);
} catch (Response::ResponseCode code) {
} catch (Response::ResponseCode &code) {
Response response;
response.set_cmd_id(cmdId);
response.set_response_code(code);