Browse Source

better this way

LPA-1
Volker Birk 8 years ago
parent
commit
3ff1610c6d
  1. 3
      BlobList.hh

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

Loading…
Cancel
Save