| 120 | |
| 121 | protected: |
| 122 | void set(WeakRefBase::WeakReference * ref) |
| 123 | { |
| 124 | if (mReference) |
| 125 | mReference->decRefCount(); |
| 126 | mReference = NULL; |
| 127 | if (ref) |
| 128 | { |
| 129 | mReference = ref; |
| 130 | mReference->incRefCount(); |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | void set(T * obj) { set(obj ? obj->getWeakReference() : (WeakRefBase::WeakReference *)NULL); } |
| 135 | private: |
nothing calls this directly
no test coverage detected