From a7c9fcfbb608e046e4d47b1345064f2f686bd8d6 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 23 Nov 2008 17:29:55 +0000 Subject: [PATCH] Fix handle::swap() and loose_handle::swap(). I guess the code must not be used, because it has never worked. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2258 1f10aa63-cdf2-0310-b900-c93c546f37ac --- ETL/trunk/ETL/_handle.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ETL/trunk/ETL/_handle.h b/ETL/trunk/ETL/_handle.h index 0137f8f..393894c 100644 --- a/ETL/trunk/ETL/_handle.h +++ b/ETL/trunk/ETL/_handle.h @@ -224,7 +224,7 @@ public: swap(handle &x) { pointer ptr=x.obj; - x.obj=x.get(); + x.obj=obj; obj=ptr; return *this; } @@ -625,7 +625,7 @@ public: { assert(0); pointer ptr=x.obj; - x.obj=x.get(); + x.obj=obj; obj=ptr; return *this; } @@ -707,7 +707,7 @@ public: swap(loose_handle &x) { pointer ptr=x.obj; - x.obj=x.get(); + x.obj=obj; obj=ptr; return *this; } -- 2.7.4