From 0b6be66da90cf18130891682969a1d74c0ba1c87 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 3 Nov 2012 16:22:56 -0700 Subject: moved around the shared ptr logic in Element --- lib/element.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/element.cpp b/lib/element.cpp index 83466c2..4ac52ea 100644 --- a/lib/element.cpp +++ b/lib/element.cpp @@ -57,7 +57,7 @@ Element &Element::shared_to_element(void) this->weak_self = this->shared_from_this(); } catch(...){} - return this->derived_to_element(); + return *this; } long Element::unique_id(void) const -- cgit