- Timestamp:
- Aug 21, 2010, 9:52:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/libraries/core/WeakPtr.h
r6417 r7198 77 77 if (this->base_) 78 78 this->base_->unregisterWeakPtr(this); 79 if (this->callback_)80 delete this->callback_;81 79 82 80 } … … 168 166 } 169 167 170 inline void setCallback( Functor*callback)168 inline void setCallback(const FunctorPtr& callback) 171 169 { 172 170 this->callback_ = callback; 173 171 } 174 172 175 inline Functor* getFunctor() const173 inline const FunctorPtr& getCallback() const 176 174 { 177 175 return this->callback_; … … 189 187 T* pointer_; 190 188 OrxonoxClass* base_; 191 Functor *callback_;189 FunctorPtr callback_; 192 190 }; 193 191
Note: See TracChangeset
for help on using the changeset viewer.