X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0df2f30c18124ddcf12dfd50d975418cd1887216..e815120e412d91e79c98dd0afac2a1e399f10810:/docs/latex/wx/trefcount.tex diff --git a/docs/latex/wx/trefcount.tex b/docs/latex/wx/trefcount.tex index f605a6ffff..01ed32c0a1 100644 --- a/docs/latex/wx/trefcount.tex +++ b/docs/latex/wx/trefcount.tex @@ -64,14 +64,17 @@ and copy constructors since they are reference-counted: \helpref{wxPalette}{wxpalette}\\ \helpref{wxPen}{wxpen}\\ \helpref{wxRegion}{wxregion}\\ -\helpref{wxString}{wxstring} +\helpref{wxString}{wxstring}\\ +\helpref{wxVariant}{wxvariant}\\ +\helpref{wxVariantData}{wxvariantdata} Note that the list above reports the objects which are reference-counted in all ports of wxWidgets; some ports may use this tecnique also for other classes. \subsection{Make your own reference-counted class}\label{wxobjectoverview} Reference counting can be implemented easily using \helpref{wxObject}{wxobject} -and \helpref{wxObjectRefData}{wxobjectrefdata} classes. +and \helpref{wxObjectRefData}{wxobjectrefdata} classes. Alternatively, you +can also use the \helpref{wxObjectDataPtr}{wxobjectdataptr} template. First, derive a new class from \helpref{wxObjectRefData}{wxobjectrefdata} and put there the memory-consuming data.