From 3ff1610c6da515d986d2a692e7c801d12756b781 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Wed, 17 Jan 2018 23:23:11 +0100 Subject: [PATCH] better this way --- BlobList.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BlobList.hh b/BlobList.hh index 0e1e6a9..003318b 100644 --- a/BlobList.hh +++ b/BlobList.hh @@ -37,7 +37,6 @@ namespace pEp { bool operator== (const Iterator& second) const { return p == second.p; } bool operator!= (const Iterator& second) const { return p != second.p; } const Blob& operator* (); - operator bloblist_t *() { return p; } Iterator& operator++ (); Iterator operator++ (int); }; @@ -54,6 +53,8 @@ namespace pEp { size_t size() const { return _size; } bool empty() const { return _size == 0; } + operator ::bloblist_t *() { return bl.get(); } + private: static void release_value(char *v); typedef unique_ptr< ::bloblist_t, decltype(&::free_bloblist) > blobdata;