summaryrefslogtreecommitdiff
path: root/src/playerrelations.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-24 22:48:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-24 22:48:35 +0300
commitb474de4a54c9b1d4d863971e40b807588d554436 (patch)
tree761e71f86ea232d1688ee2838bd2294c59dea947 /src/playerrelations.cpp
parenta316d537dce50f4b4e1e10f5c26a7851baddbd8b (diff)
downloadplus-b474de4a54c9b1d4d863971e40b807588d554436.tar.gz
plus-b474de4a54c9b1d4d863971e40b807588d554436.tar.bz2
plus-b474de4a54c9b1d4d863971e40b807588d554436.tar.xz
plus-b474de4a54c9b1d4d863971e40b807588d554436.zip
replace defines to consts.
Diffstat (limited to 'src/playerrelations.cpp')
-rw-r--r--src/playerrelations.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/playerrelations.cpp b/src/playerrelations.cpp
index e06f87955..e7f4aeb2f 100644
--- a/src/playerrelations.cpp
+++ b/src/playerrelations.cpp
@@ -34,14 +34,14 @@
#include "debug.h"
-#define PLAYER_IGNORE_STRATEGY_NOP "nop"
-#define PLAYER_IGNORE_STRATEGY_EMOTE0 "emote0"
-#define DEFAULT_IGNORE_STRATEGY PLAYER_IGNORE_STRATEGY_EMOTE0
+static const char *PLAYER_IGNORE_STRATEGY_NOP = "nop";
+static const char *PLAYER_IGNORE_STRATEGY_EMOTE0 = "emote0";
+static const char *DEFAULT_IGNORE_STRATEGY = PLAYER_IGNORE_STRATEGY_EMOTE0;
-#define NAME "name" // constant for xml serialisation
-#define RELATION "relation" // constant for xml serialisation
+static const char *NAME = "name"; // constant for xml serialisation
+static const char *RELATION = "relation"; // constant for xml serialisation
-#define IGNORE_EMOTE_TIME 100
+static const unsigned int IGNORE_EMOTE_TIME = 100;
typedef std::map<std::string, PlayerRelation *> PlayerRelations;
typedef PlayerRelations::const_iterator PlayerRelationsCIter;