From e08e7434ecbd86d7ed5453dd8d9220166ea8e8d1 Mon Sep 17 00:00:00 2001 From: Lolbot Date: Thu, 19 Feb 2015 14:21:45 +0000 Subject: [PATCH] fixed 25 files out of 4243: - removed 16 CR characters - removed 1 trailing whitespaces - replaced 53 tabs with spaces - fixed 22 svn:eol-style properties --- src/lol/base/avl_tree.h | 2 +- src/lol/base/enum.h | 22 +++++++++++----------- src/lol/math/geometry.h | 34 +++++++++++++++++----------------- 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/lol/base/avl_tree.h b/src/lol/base/avl_tree.h index 42059e56..3a7b1b28 100644 --- a/src/lol/base/avl_tree.h +++ b/src/lol/base/avl_tree.h @@ -588,4 +588,4 @@ protected: }; } - + diff --git a/src/lol/base/enum.h b/src/lol/base/enum.h index ccef41f9..0c790e79 100644 --- a/src/lol/base/enum.h +++ b/src/lol/base/enum.h @@ -55,20 +55,20 @@ public: inline explicit SafeEnum(int i) : m_value(T(i)) {} inline Type ToScalar() const { return m_value; } - /* Convert to string stuff */ + /* Convert to string stuff */ inline class String ToString() { - /* FIXME: we all know this isn’t thread safe. But is it really - * a big deal? */ - static map enum_map; - static bool ready = false; + /* FIXME: we all know this isn’t thread safe. But is it really + * a big deal? */ + static map enum_map; + static bool ready = false; - if (ready || this->BuildEnumMap(enum_map)) - { - ready = true; - if (enum_map.has_key((int64_t)m_value)) - return enum_map[(int64_t)m_value]; - } + if (ready || this->BuildEnumMap(enum_map)) + { + ready = true; + if (enum_map.has_key((int64_t)m_value)) + return enum_map[(int64_t)m_value]; + } return ""; } diff --git a/src/lol/math/geometry.h b/src/lol/math/geometry.h index 42f5a33f..2cd2732a 100644 --- a/src/lol/math/geometry.h +++ b/src/lol/math/geometry.h @@ -34,16 +34,16 @@ namespace lol X = 0, Y, Z, MAX, XY = 2, XYZ = 3, }; protected: - virtual bool BuildEnumMap(map& enum_map) - { - enum_map[X] = "X"; - enum_map[Y] = "Y"; - enum_map[Z] = "Z"; + virtual bool BuildEnumMap(map& enum_map) + { + enum_map[X] = "X"; + enum_map[Y] = "Y"; + enum_map[Z] = "Z"; enum_map[MAX] = "MAX"; - enum_map[XY] = "XY"; - enum_map[XYZ] = "XYZ"; - return true; - } + enum_map[XY] = "XY"; + enum_map[XYZ] = "XYZ"; + return true; + } }; typedef SafeEnum Axis; @@ -55,15 +55,15 @@ struct DirectionBase : public StructSafeEnum Up = 0, Down, Left, Right, MAX, }; protected: - virtual bool BuildEnumMap(map& enum_map) - { - enum_map[Up] = "Up"; - enum_map[Down] = "Down"; - enum_map[Left] = "Left"; - enum_map[Right] = "Right"; + virtual bool BuildEnumMap(map& enum_map) + { + enum_map[Up] = "Up"; + enum_map[Down] = "Down"; + enum_map[Left] = "Left"; + enum_map[Right] = "Right"; enum_map[MAX] = "MAX"; - return true; - } + return true; + } }; typedef SafeEnum Direction;