Renaming Module::Type to Module::ModuleType for clarity.
A monicelli::Type enum is already defined.
This commit is contained in:
parent
43fc82d318
commit
0f5c138948
|
@ -425,11 +425,11 @@ private:
|
||||||
|
|
||||||
class Module: public Emittable {
|
class Module: public Emittable {
|
||||||
public:
|
public:
|
||||||
enum Type {
|
enum ModuleType {
|
||||||
SYSTEM, USER
|
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 {
|
virtual bool emit(Emitter *emitter) const {
|
||||||
return emitter->emit(*this);
|
return emitter->emit(*this);
|
||||||
|
@ -447,13 +447,13 @@ public:
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
Type getType() const {
|
ModuleType getType() const {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string name;
|
std::string name;
|
||||||
Type type;
|
ModuleType type;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Reference in New Issue
Block a user