summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-04-12 15:05:31 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-04-12 15:08:02 +0200
commit9134263ca185a34726cb4cd2f9ee4849f9354674 (patch)
treef2939a499b9d7a54cb333c73e42125a4426140a4
parentf04f62249ae52e256cb889dfa17eed1f02efcbce (diff)
downloadmanaserv-9134263ca185a34726cb4cd2f9ee4849f9354674.tar.gz
manaserv-9134263ca185a34726cb4cd2f9ee4849f9354674.tar.bz2
manaserv-9134263ca185a34726cb4cd2f9ee4849f9354674.tar.xz
manaserv-9134263ca185a34726cb4cd2f9ee4849f9354674.zip
Removed static member definitions that are no longer needed
The requirement for having these definitions was relaxed in the C++11 standard. In short, they are not needed anymore for static const integral types. Details: http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#454
-rw-r--r--src/game-server/effect.cpp2
-rw-r--r--src/game-server/item.cpp2
-rw-r--r--src/game-server/monster.h2
-rw-r--r--src/game-server/npc.cpp2
-rw-r--r--src/game-server/spawnareacomponent.cpp2
-rw-r--r--src/game-server/triggerareacomponent.cpp2
6 files changed, 1 insertions, 11 deletions
diff --git a/src/game-server/effect.cpp b/src/game-server/effect.cpp
index 94f4613c..42142c5e 100644
--- a/src/game-server/effect.cpp
+++ b/src/game-server/effect.cpp
@@ -25,8 +25,6 @@
#include "game-server/entity.h"
#include "game-server/state.h"
-const ComponentType EffectComponent::type;
-
void EffectComponent::update(Entity &entity)
{
if (mHasBeenShown)
diff --git a/src/game-server/item.cpp b/src/game-server/item.cpp
index ed74e925..444576f2 100644
--- a/src/game-server/item.cpp
+++ b/src/game-server/item.cpp
@@ -156,8 +156,6 @@ void ItemClass::addAttack(AttackInfo *attackInfo,
addEffect(new ItemEffectAttack(attackInfo), applyTrigger, dispellTrigger);
}
-const ComponentType ItemComponent::type;
-
ItemComponent::ItemComponent(ItemClass *type, int amount) :
mType(type),
mAmount(amount)
diff --git a/src/game-server/monster.h b/src/game-server/monster.h
index d28ec577..2e238201 100644
--- a/src/game-server/monster.h
+++ b/src/game-server/monster.h
@@ -275,7 +275,7 @@ struct AttackPosition
class MonsterComponent : public Component
{
public:
- static const ComponentType type = CT_Monster;
+ static const ComponentType type = CT_Monster;
/** Time in game ticks until ownership of a monster can change. */
static const int KILLSTEAL_PROTECTION_TIME = 100;
diff --git a/src/game-server/npc.cpp b/src/game-server/npc.cpp
index 7806e510..b5e17eac 100644
--- a/src/game-server/npc.cpp
+++ b/src/game-server/npc.cpp
@@ -28,8 +28,6 @@
#include "scripting/script.h"
#include "scripting/scriptmanager.h"
-const ComponentType NpcComponent::type;
-
NpcComponent::NpcComponent(int npcId):
mNpcId(npcId),
mEnabled(true)
diff --git a/src/game-server/spawnareacomponent.cpp b/src/game-server/spawnareacomponent.cpp
index afc86666..54cb017f 100644
--- a/src/game-server/spawnareacomponent.cpp
+++ b/src/game-server/spawnareacomponent.cpp
@@ -25,8 +25,6 @@
#include "game-server/state.h"
#include "utils/logger.h"
-const ComponentType SpawnAreaComponent::type;
-
SpawnAreaComponent::SpawnAreaComponent(MonsterClass *specy,
const Rectangle &zone,
int maxBeings,
diff --git a/src/game-server/triggerareacomponent.cpp b/src/game-server/triggerareacomponent.cpp
index e9354901..b599546b 100644
--- a/src/game-server/triggerareacomponent.cpp
+++ b/src/game-server/triggerareacomponent.cpp
@@ -57,8 +57,6 @@ void ScriptAction::process(Entity *obj)
mScript->execute(obj->getMap());
}
-const ComponentType TriggerAreaComponent::type;
-
void TriggerAreaComponent::update(Entity &entity)
{
MapComposite *map = entity.getMap();