From: dooglus Date: Sun, 23 Nov 2008 17:29:55 +0000 (+0000) Subject: Fix handle::swap() and loose_handle::swap(). I guess the code must not be... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a7c9fcfbb608e046e4d47b1345064f2f686bd8d6;p=synfig.git 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 --- 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; }