better this way

LPA-1
Volker Birk 2018-01-17 23:23:11 +01:00
parent f8498cbb53
commit 3ff1610c6d
1 changed files with 2 additions and 1 deletions

View File

@ -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;