Changeset 10298 for code/trunk/src/libraries/core
- Timestamp:
- Mar 2, 2015, 11:18:45 PM (10 years ago)
- Location:
- code/trunk/src/libraries/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/BaseObject.h
r9667 r10298 138 138 { return this->templates_; } 139 139 140 virtual inline void setNamespace(Namespace*ns) { this->namespace_ = ns; }141 inline Namespace*getNamespace() const { return this->namespace_; }140 inline void setNamespace(const SmartPtr<Namespace>& ns) { this->namespace_ = ns; } 141 inline const SmartPtr<Namespace>& getNamespace() const { return this->namespace_; } 142 142 143 143 inline void setCreator(BaseObject* creator) { this->creator_ = creator; } … … 222 222 std::map<std::string, std::string> xmlAttributes_; //!< Lowercase XML attributes 223 223 std::string loaderIndentation_; //!< Indentation of the debug output in the Loader 224 Namespace*namespace_;224 SmartPtr<Namespace> namespace_; 225 225 BaseObject* creator_; 226 226 SmartPtr<Scene> scene_; -
code/trunk/src/libraries/core/Namespace.cc
r9667 r10298 46 46 { 47 47 RegisterObject(Namespace); 48 49 this->setNamespace(SmartPtr<Namespace>(this, false)); 48 50 } 49 51
Note: See TracChangeset
for help on using the changeset viewer.