MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / setNull

Method setNull

include/RavEngine/Ref.hpp:21–26  ·  view source on GitHub ↗

Makes this ref object a null ref. Releases any previously held pointer. */

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

releaseMethod · 0.45

Tested by

no test coverage detected