| 228 | |
| 229 | template<class T> |
| 230 | inline void Foam::tmp<T>::clear() const |
| 231 | { |
| 232 | if (isTmp() && ptr_) |
| 233 | { |
| 234 | if (ptr_->unique()) |
| 235 | { |
| 236 | delete ptr_; |
| 237 | ptr_ = 0; |
| 238 | } |
| 239 | else |
| 240 | { |
| 241 | ptr_->operator--(); |
| 242 | ptr_ = 0; |
| 243 | } |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | |
| 248 | // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // |
no test coverage detected