From: Martin Ling Date: Sat, 6 Sep 2014 11:29:36 +0000 (+0100) Subject: C++: Fix recursion loop in PacketPayload::get_shared_pointer(). X-Git-Tag: libsigrok-0.4.0~1028 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4f7bcf0ec35c18f10da51530767efcff62ddc88f;p=libsigrok.git C++: Fix recursion loop in PacketPayload::get_shared_pointer(). --- diff --git a/bindings/cxx/classes.cpp b/bindings/cxx/classes.cpp index 525e046d..c515a303 100644 --- a/bindings/cxx/classes.cpp +++ b/bindings/cxx/classes.cpp @@ -1011,7 +1011,8 @@ Header::~Header() shared_ptr Header::get_shared_pointer(Packet *parent) { - return static_pointer_cast(get_shared_pointer(parent)); + return static_pointer_cast( + ParentOwned::get_shared_pointer(parent)); } int Header::get_feed_version() @@ -1038,7 +1039,8 @@ Meta::~Meta() shared_ptr Meta::get_shared_pointer(Packet *parent) { - return static_pointer_cast(get_shared_pointer(parent)); + return static_pointer_cast( + ParentOwned::get_shared_pointer(parent)); } map Meta::get_config() @@ -1064,7 +1066,8 @@ Logic::~Logic() shared_ptr Logic::get_shared_pointer(Packet *parent) { - return static_pointer_cast(get_shared_pointer(parent)); + return static_pointer_cast( + ParentOwned::get_shared_pointer(parent)); } void *Logic::get_data_pointer() @@ -1094,7 +1097,8 @@ Analog::~Analog() shared_ptr Analog::get_shared_pointer(Packet *parent) { - return static_pointer_cast(get_shared_pointer(parent)); + return static_pointer_cast( + ParentOwned::get_shared_pointer(parent)); } float *Analog::get_data_pointer()