summaryrefslogtreecommitdiffstats
path: root/messagebus
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-10-02 19:59:41 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-10-03 16:52:36 +0000
commit6a0ea2d5fce1967927cf1f4f319fb0209ac2eb1e (patch)
treecdf844359ac298e85d5ffc4e15f467964a8c7593 /messagebus
parent74d9d289d9b9ffd5f9f427a1fb7abf176bae4abe (diff)
Checkpoint 1
Diffstat (limited to 'messagebus')
-rw-r--r--messagebus/src/vespa/messagebus/blob.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/messagebus/src/vespa/messagebus/blob.h b/messagebus/src/vespa/messagebus/blob.h
index 101ea989a92..86e317d6e79 100644
--- a/messagebus/src/vespa/messagebus/blob.h
+++ b/messagebus/src/vespa/messagebus/blob.h
@@ -22,7 +22,7 @@ public:
* @param s size of the data to be created
**/
Blob(uint32_t s) :
- _payload(s),
+ _payload(vespalib::DefaultAlloc::create(s)),
_sz(s)
{ }
Blob(Blob && rhs) :
@@ -55,11 +55,11 @@ public:
**/
const char *data() const { return static_cast<const char *>(_payload.get()); }
- vespalib::DefaultAlloc & payload() { return _payload; }
- const vespalib::DefaultAlloc & payload() const { return _payload; }
+ vespalib::alloc::Alloc & payload() { return _payload; }
+ const vespalib::alloc::Alloc & payload() const { return _payload; }
size_t size() const { return _sz; }
private:
- vespalib::DefaultAlloc _payload;
+ vespalib::alloc::Alloc _payload;
size_t _sz;
};