From 0f5c138948f69e87155f4d8cd802e77f2f774a08 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Sat, 7 Mar 2015 14:05:03 +0100 Subject: [PATCH] Renaming Module::Type to Module::ModuleType for clarity. A monicelli::Type enum is already defined. --- Nodes.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Nodes.hpp b/Nodes.hpp index b8665cc..0798724 100644 --- a/Nodes.hpp +++ b/Nodes.hpp @@ -425,11 +425,11 @@ private: class Module: public Emittable { public: - enum Type { + enum ModuleType { SYSTEM, USER }; - Module(const std::string &n, Type s): name(n), type(s) {} + Module(const std::string &n, ModuleType s): name(n), type(s) {} virtual bool emit(Emitter *emitter) const { return emitter->emit(*this); @@ -447,13 +447,13 @@ public: return name; } - Type getType() const { + ModuleType getType() const { return type; } private: std::string name; - Type type; + ModuleType type; }; } // namespace