From 369d17c0754fa6de6088aa120704d8de929ea566 Mon Sep 17 00:00:00 2001
From: Robert Roebling <robert@roebling.de>
Date: Tue, 28 Aug 2007 12:30:56 +0000
Subject: [PATCH] added copy constr

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/latex/wx/objectdataptr.tex | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/docs/latex/wx/objectdataptr.tex b/docs/latex/wx/objectdataptr.tex
index 7ff5cc1984..7414b06526 100644
--- a/docs/latex/wx/objectdataptr.tex
+++ b/docs/latex/wx/objectdataptr.tex
@@ -60,6 +60,7 @@ class MyCar
 {
 public:
     MyCar( int price );
+    MyCar( const MyCar& data );
     
     bool operator == ( const MyCar& car ) const;
     bool operator != (const MyCar& car) const { return !(*this == car); }
@@ -82,6 +83,11 @@ MyCar::MyCar( int price )
     m_data.get()->SetPrice( price );
 }
 
+MyCar::MyCar( const MyCar& car )
+{
+    m_data.reset( car.m_data.get() );
+}
+
 bool MyCar::operator == ( const MyCar& car ) const
 {
     if (m_data.get() == car.m_data.get()) return true;
-- 
2.50.0

