template<class type>
FXRefingObject PtrDetach ( FXRefingObject< type > &  p  )  [friend]

Makes a copy of the referenced object and returns a holder pointing to the new copy

Definition at line 439 of file FXRefedObject.h.

00440     {
00441         FXAutoPtr<type> v;
00442         type *pv=PtrPtr(p);
00443         assert(pv);
00444         FXERRHM(v=new type(*pv));
00445         return FXRefingObject(v);
00446     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:35:54 2009 for TnFOX by doxygen v1.4.7