From 6e9aa693c6f07c99e5b84ee35570a14efe4df393 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 22 Jun 2008 20:50:43 +0000 Subject: Fixed warning about missing virtual destructor. --- src/player_relations.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/player_relations.cpp') diff --git a/src/player_relations.cpp b/src/player_relations.cpp index f7e04712..610f5d04 100644 --- a/src/player_relations.cpp +++ b/src/player_relations.cpp @@ -83,7 +83,7 @@ PlayerRelation::PlayerRelation(relation relation) mRelation = relation; } -PlayerRelationsManager::PlayerRelationsManager(void) : +PlayerRelationsManager::PlayerRelationsManager() : mPersistIgnores(false), mDefaultPermissions(PlayerRelation::DEFAULT), mIgnoreStrategy(NULL) @@ -91,7 +91,7 @@ PlayerRelationsManager::PlayerRelationsManager(void) : } void -PlayerRelationsManager::clear(void) +PlayerRelationsManager::clear() { std::vector *names = getPlayers(); for (std::vector::const_iterator @@ -116,7 +116,7 @@ PlayerRelationsManager::getPlayerIgnoreStrategyIndex(const std::string &name) } void -PlayerRelationsManager::load(void) +PlayerRelationsManager::load() { clear(); @@ -134,7 +134,7 @@ PlayerRelationsManager::load(void) void -PlayerRelationsManager::init(void) +PlayerRelationsManager::init() { load(); @@ -143,7 +143,7 @@ PlayerRelationsManager::init(void) } void -PlayerRelationsManager::store(void) +PlayerRelationsManager::store() { config.setList::const_iterator, std::pair, @@ -236,7 +236,7 @@ PlayerRelationsManager::setRelation(const std::string &player_name, PlayerRelati } std::vector * -PlayerRelationsManager::getPlayers(void) +PlayerRelationsManager::getPlayers() { std::vector *retval = new std::vector(); @@ -274,7 +274,7 @@ PlayerRelationsManager::getRelation(const std::string &name) // defaults unsigned int -PlayerRelationsManager::getDefault(void) const +PlayerRelationsManager::getDefault() const { return mDefaultPermissions; } @@ -388,7 +388,7 @@ private: static std::vector player_ignore_strategies; std::vector * -PlayerRelationsManager::getPlayerIgnoreStrategies(void) +PlayerRelationsManager::getPlayerIgnoreStrategies() { if (player_ignore_strategies.size() == 0) { // not initialised yet? -- cgit v1.2.3-70-g09d2