X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGSharedPtr.hxx;h=f321b12dc4a3e4578b14276d2e5f74dfded32b2c;hb=4e46bb667179cd45cfb2f9934734ceddd1ea01b4;hp=cbaee0f6c3fcc3d5e75fbe052eed5a148efbf84a;hpb=d14755abb8f46a3e26040ad3907537c0bf4799b5;p=simgear.git diff --git a/simgear/structure/SGSharedPtr.hxx b/simgear/structure/SGSharedPtr.hxx index cbaee0f6..f321b12d 100644 --- a/simgear/structure/SGSharedPtr.hxx +++ b/simgear/structure/SGSharedPtr.hxx @@ -98,6 +98,8 @@ public: private: void assign(T* p) { get(p); put(); _ptr = p; } + void assignNonRef(T* p) + { put(); _ptr = p; } void get(const T* p) const { T::get(p); }