Makes this ref object a null ref. Releases any previously held pointer. */
| 19 | Makes this ref object a null ref. Releases any previously held pointer. |
| 20 | */ |
| 21 | void setNull() { |
| 22 | if (!isNull()) { |
| 23 | ptr->release(); |
| 24 | } |
| 25 | ptr = nullptr; |
| 26 | } |
| 27 | |
| 28 | //constructor |
| 29 | Ref(T* const other) { |