diff options
| author | Spp <spp@jorge.gr> | 2011-09-29 12:43:05 +0200 |
|---|---|---|
| committer | Spp <spp@jorge.gr> | 2011-09-29 12:43:05 +0200 |
| commit | b16d2245bbd374805d15cdca585e8b42bf139605 (patch) | |
| tree | b7b63c567112e1999a2566611363cf5e83adb1be /src/server/worldserver | |
| parent | 8b820baa7324d41df264f48e344d62584bff70f8 (diff) | |
Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '('
- Added missing space after a comma and remove space before comma (with some exceptions)
- Remove trailing spaces
- Convert tab to spaces
Note: Only affects files with extension "cpp" and "h" under /src/server
Diffstat (limited to 'src/server/worldserver')
| -rwxr-xr-x | src/server/worldserver/CommandLine/CliRunnable.cpp | 2 | ||||
| -rwxr-xr-x | src/server/worldserver/Main.cpp | 2 | ||||
| -rwxr-xr-x | src/server/worldserver/Master.cpp | 2 | ||||
| -rwxr-xr-x | src/server/worldserver/RemoteAccess/RASocket.cpp | 2 | ||||
| -rwxr-xr-x | src/server/worldserver/TCSoap/TCSoap.cpp | 12 |
5 files changed, 10 insertions, 10 deletions
diff --git a/src/server/worldserver/CommandLine/CliRunnable.cpp b/src/server/worldserver/CommandLine/CliRunnable.cpp index 794f79f536d..cf5ad79f878 100755 --- a/src/server/worldserver/CommandLine/CliRunnable.cpp +++ b/src/server/worldserver/CommandLine/CliRunnable.cpp @@ -532,7 +532,7 @@ bool ChatHandler::HandleServerSetDiffTimeCommand(const char *args) bool ChatHandler::HandleServerToggleQueryLogging(const char* /* args */) { sLog->SetSQLDriverQueryLogging(!sLog->GetSQLDriverQueryLogging()); - if(sLog->GetSQLDriverQueryLogging()) + if (sLog->GetSQLDriverQueryLogging()) PSendSysMessage(LANG_SQLDRIVER_QUERY_LOGGING_ENABLED); else PSendSysMessage(LANG_SQLDRIVER_QUERY_LOGGING_DISABLED); diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp index 85f10e0cf9b..1ce247d9249 100755 --- a/src/server/worldserver/Main.cpp +++ b/src/server/worldserver/Main.cpp @@ -75,7 +75,7 @@ extern int main(int argc, char **argv) ///- Command line parsing to get the configuration file name char const* cfg_file = _TRINITY_CORE_CONFIG; int c = 1; - while( c < argc ) + while ( c < argc ) { if (strcmp(argv[c], "-c") == 0) { diff --git a/src/server/worldserver/Master.cpp b/src/server/worldserver/Master.cpp index e16494bdeac..5260140fef0 100755 --- a/src/server/worldserver/Master.cpp +++ b/src/server/worldserver/Master.cpp @@ -128,7 +128,7 @@ int Master::Run() sLog->outString(" ______ __"); sLog->outString("/\\__ _\\ __ __/\\ \\__"); - sLog->outString("\\/_/\\ \\/ _ __ /\\_\\ ___ /\\_\\ \\ ,_\\ __ __"); + sLog->outString("\\/_/\\ \\/ _ __ /\\_\\ ___ /\\_\\ \\, _\\ __ __"); sLog->outString(" \\ \\ \\/\\`'__\\/\\ \\ /' _ `\\/\\ \\ \\ \\/ /\\ \\/\\ \\"); sLog->outString(" \\ \\ \\ \\ \\/ \\ \\ \\/\\ \\/\\ \\ \\ \\ \\ \\_\\ \\ \\_\\ \\"); sLog->outString(" \\ \\_\\ \\_\\ \\ \\_\\ \\_\\ \\_\\ \\_\\ \\__\\\\/`____ \\"); diff --git a/src/server/worldserver/RemoteAccess/RASocket.cpp b/src/server/worldserver/RemoteAccess/RASocket.cpp index 9c31c189822..71d4d1df035 100755 --- a/src/server/worldserver/RemoteAccess/RASocket.cpp +++ b/src/server/worldserver/RemoteAccess/RASocket.cpp @@ -349,7 +349,7 @@ int RASocket::svc(void) if (send(std::string(sWorld->GetMotd()) + "\r\n") == -1) return -1; - for(;;) + for (;;) { // show prompt const char* tc_prompt = "TC> "; diff --git a/src/server/worldserver/TCSoap/TCSoap.cpp b/src/server/worldserver/TCSoap/TCSoap.cpp index 67c54e7e011..fa7c34cffbf 100755 --- a/src/server/worldserver/TCSoap/TCSoap.cpp +++ b/src/server/worldserver/TCSoap/TCSoap.cpp @@ -83,25 +83,25 @@ int ns1__executeCommand(soap* soap, char* command, char** result) } uint32 accountId = AccountMgr::GetId(soap->userid); - if(!accountId) + if (!accountId) { sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: Client used invalid username '%s'", soap->userid); return 401; } - if(!AccountMgr::CheckPassword(accountId, soap->passwd)) + if (!AccountMgr::CheckPassword(accountId, soap->passwd)) { sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: invalid password for account '%s'", soap->userid); return 401; } - if(AccountMgr::GetSecurity(accountId) < SEC_ADMINISTRATOR) + if (AccountMgr::GetSecurity(accountId) < SEC_ADMINISTRATOR) { sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: %s's gmlevel is too low", soap->userid); return 403; } - if(!command || !*command) + if (!command || !*command) return soap_sender_fault(soap, "Command mustn't be empty", "The supplied command was an empty string"); sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: got command '%s'", command); @@ -117,7 +117,7 @@ int ns1__executeCommand(soap* soap, char* command, char** result) // wait for callback to complete command int acc = connection.pendingCommands.acquire(); - if(acc) + if (acc) { sLog->outError("TCSoap: Error while acquiring lock, acc = %i, errno = %u", acc, errno); } @@ -125,7 +125,7 @@ int ns1__executeCommand(soap* soap, char* command, char** result) // alright, command finished char* printBuffer = soap_strdup(soap, connection.m_printBuffer.c_str()); - if(connection.hasCommandSucceeded()) + if (connection.hasCommandSucceeded()) { *result = printBuffer; return SOAP_OK; |
