Remove setName function from OpenSpaceModule and move naming into constructor

This commit is contained in:
Alexander Bock
2015-06-22 22:57:15 +02:00
parent 9ed5ee4469
commit 978b535a2f
8 changed files with 26 additions and 26 deletions

View File

@@ -31,7 +31,7 @@ namespace openspace {
class OpenSpaceModule {
public:
OpenSpaceModule() = default;
OpenSpaceModule(std::string name);
virtual ~OpenSpaceModule() = default;
virtual bool initialize();
@@ -40,10 +40,9 @@ public:
std::string name() const;
protected:
void setName(std::string name);
std::string modulePath() const;
std::string _name;
const std::string _name;
};
} // namespace openspace