From f8db8a3faa30b71dca33ced38be16d3f93f43e8a Mon Sep 17 00:00:00 2001 From: Rémi Verschelde Date: Sun, 19 Mar 2017 00:36:26 +0100 Subject: Bring that Whole New World to the Old Continent too Applies the clang-format style to the 2.1 branch as done for master in 5dbf1809c6e3e905b94b8764e99491e608122261. --- core/path_remap.h | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'core/path_remap.h') diff --git a/core/path_remap.h b/core/path_remap.h index fc687ee03..83d216e30 100644 --- a/core/path_remap.h +++ b/core/path_remap.h @@ -30,36 +30,35 @@ #define PATH_REMAP_H #include "hash_map.h" -#include "ustring.h" #include "object.h" - +#include "ustring.h" class PathRemap : public Object { - OBJ_TYPE(PathRemap,Object); + OBJ_TYPE(PathRemap, Object); - static PathRemap* singleton; + static PathRemap *singleton; struct RemapData { String always; - Map locale; + Map locale; }; - HashMap remap; -protected: + HashMap remap; +protected: static void _bind_methods(); -public: - void add_remap(const String& p_from, const String& p_to,const String& p_locale=String()); - bool has_remap(const String& p_from) const; +public: + void add_remap(const String &p_from, const String &p_to, const String &p_locale = String()); + bool has_remap(const String &p_from) const; //_FORCE_INLINE_ String get_remap(const String& p_from) const { const String *ptr=remap.getptr(p_from); if (!ptr) return p_from; else return *ptr; } - String get_remap(const String& p_from) const; - void erase_remap(const String& p_from); + String get_remap(const String &p_from) const; + void erase_remap(const String &p_from); void clear_remaps(); void load_remaps(); - static PathRemap* get_singleton(); + static PathRemap *get_singleton(); PathRemap(); }; -- cgit v1.2.3-70-g09d2