Core/Server: Add missing overrides

This commit is contained in:
DDuarte
2014-08-09 20:17:40 +01:00
parent 272b9d3d16
commit a394205eca
80 changed files with 656 additions and 656 deletions

View File

@@ -35,7 +35,7 @@
class PingOperation : public SQLOperation
{
//! Operation for idle delaythreads
bool Execute()
bool Execute() override
{
m_conn->Ping();
return true;

View File

@@ -29,7 +29,7 @@ class CharacterDatabaseConnection : public MySQLConnection
CharacterDatabaseConnection(ProducerConsumerQueue<SQLOperation*>* q, MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) { }
//- Loads database type specific prepared statements
void DoPrepareStatements();
void DoPrepareStatements() override;
};
typedef DatabaseWorkerPool<CharacterDatabaseConnection> CharacterDatabaseWorkerPool;

View File

@@ -29,7 +29,7 @@ class LoginDatabaseConnection : public MySQLConnection
LoginDatabaseConnection(ProducerConsumerQueue<SQLOperation*>* q, MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) { }
//- Loads database type specific prepared statements
void DoPrepareStatements();
void DoPrepareStatements() override;
};
typedef DatabaseWorkerPool<LoginDatabaseConnection> LoginDatabaseWorkerPool;

View File

@@ -29,7 +29,7 @@ class WorldDatabaseConnection : public MySQLConnection
WorldDatabaseConnection(ProducerConsumerQueue<SQLOperation*>* q, MySQLConnectionInfo& connInfo) : MySQLConnection(q, connInfo) { }
//- Loads database type specific prepared statements
void DoPrepareStatements();
void DoPrepareStatements() override;
};
typedef DatabaseWorkerPool<WorldDatabaseConnection> WorldDatabaseWorkerPool;

View File

@@ -163,7 +163,7 @@ class PreparedStatementTask : public SQLOperation
PreparedStatementTask(PreparedStatement* stmt, bool async = false);
~PreparedStatementTask();
bool Execute();
bool Execute() override;
PreparedQueryResultFuture GetFuture() { return m_result->get_future(); }
protected:

View File

@@ -52,7 +52,7 @@ class SQLQueryHolderTask : public SQLOperation
SQLQueryHolderTask(SQLQueryHolder* holder)
: m_holder(holder) { };
bool Execute();
bool Execute() override;
QueryResultHolderFuture GetFuture() { return m_result.get_future(); }
};

View File

@@ -63,7 +63,7 @@ class TransactionTask : public SQLOperation
~TransactionTask(){ };
protected:
bool Execute();
bool Execute() override;
SQLTransaction m_trans;
};

View File

@@ -51,7 +51,7 @@ class AppenderConsole: public Appender
private:
void SetColor(bool stdout_stream, ColorTypes color);
void ResetColor(bool stdout_stream);
void _write(LogMessage const& message);
void _write(LogMessage const& message) override;
bool _colored;
ColorTypes _colors[MaxLogLevels];
};

View File

@@ -31,7 +31,7 @@ class AppenderDB: public Appender
private:
uint32 realmId;
bool enabled;
void _write(LogMessage const& message);
void _write(LogMessage const& message) override;
};
#endif

View File

@@ -30,7 +30,7 @@ class AppenderFile: public Appender
private:
void CloseFile();
void _write(LogMessage const& message);
void _write(LogMessage const& message) override;
FILE* logfile;
std::string filename;
std::string logDir;

View File

@@ -40,7 +40,7 @@ class ByteBufferException : public std::exception
public:
~ByteBufferException() throw() { }
char const* what() const throw() { return msg_.c_str(); }
char const* what() const throw() override { return msg_.c_str(); }
protected:
std::string & message() throw() { return msg_; }