diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-03-11 14:56:50 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-03-12 17:52:42 +0100 |
commit | 0e2a9c41c5b14f3037c8df8e6deddba63fa7120e (patch) | |
tree | 7e4875ddec8e8e96de505e5459f4950b17c3a38a /src/dal/mysqldataprovider.cpp | |
parent | ba57aa3eedf09f32a1ed003ce26ca54666796aef (diff) | |
download | manaserv-0e2a9c41c5b14f3037c8df8e6deddba63fa7120e.tar.gz manaserv-0e2a9c41c5b14f3037c8df8e6deddba63fa7120e.tar.bz2 manaserv-0e2a9c41c5b14f3037c8df8e6deddba63fa7120e.tar.xz manaserv-0e2a9c41c5b14f3037c8df8e6deddba63fa7120e.zip |
Removed a bunch of silly documentation
A C++ developer should be able to recognize a constructor and a
destructor by just looking at it, so let's stop writing down the
obvious. :)
Diffstat (limited to 'src/dal/mysqldataprovider.cpp')
-rw-r--r-- | src/dal/mysqldataprovider.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/dal/mysqldataprovider.cpp b/src/dal/mysqldataprovider.cpp index c1f45731..13036461 100644 --- a/src/dal/mysqldataprovider.cpp +++ b/src/dal/mysqldataprovider.cpp @@ -37,9 +37,6 @@ const std::string MySqlDataProvider::CFGPARAM_MYSQL_DB_DEF = "mana"; const std::string MySqlDataProvider::CFGPARAM_MYSQL_USER_DEF = "mana"; const std::string MySqlDataProvider::CFGPARAM_MYSQL_PWD_DEF = "mana"; -/** - * Constructor. - */ MySqlDataProvider::MySqlDataProvider() throw() : mDb(0), @@ -49,10 +46,6 @@ MySqlDataProvider::MySqlDataProvider() { } - -/** - * Destructor. - */ MySqlDataProvider::~MySqlDataProvider() throw() { @@ -65,7 +58,6 @@ MySqlDataProvider::~MySqlDataProvider() disconnect(); } - /** * Get the database backend name. */ @@ -75,7 +67,6 @@ DbBackends MySqlDataProvider::getDbBackend() const return DB_BKEND_MYSQL; } - /** * Create a connection to the database. */ @@ -136,13 +127,11 @@ void MySqlDataProvider::connect() LOG_INFO("Connection to mySQL was sucessfull."); } - /** * Execute a SQL query. */ -const RecordSet& -MySqlDataProvider::execSql(const std::string& sql, - const bool refresh) +const RecordSet &MySqlDataProvider::execSql(const std::string& sql, + const bool refresh) { if (!mIsConnected) throw std::runtime_error("not connected to database"); @@ -197,7 +186,6 @@ MySqlDataProvider::execSql(const std::string& sql, return mRecordSet; } - /** * Close the connection to the database. */ |