summaryrefslogtreecommitdiffstats
path: root/staging_vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-01-20 13:04:49 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-01-20 13:04:49 +0000
commit1d3fe1bedb648cfd497eeee61478fa45f332255b (patch)
tree7519f9f9d87dd9e89a788a596ca865bd5330cac5 /staging_vespalib
parent5eaae9afb93ad82a931e117a14babdbb271762c6 (diff)
GC a load of unused code. ByteBuffer towards read only.
Diffstat (limited to 'staging_vespalib')
-rw-r--r--staging_vespalib/src/vespa/vespalib/util/growablebytebuffer.cpp2
-rw-r--r--staging_vespalib/src/vespa/vespalib/util/growablebytebuffer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/staging_vespalib/src/vespa/vespalib/util/growablebytebuffer.cpp b/staging_vespalib/src/vespa/vespalib/util/growablebytebuffer.cpp
index 57e88873e81..a10cad70579 100644
--- a/staging_vespalib/src/vespa/vespalib/util/growablebytebuffer.cpp
+++ b/staging_vespalib/src/vespa/vespalib/util/growablebytebuffer.cpp
@@ -27,7 +27,7 @@ GrowableByteBuffer::allocate(uint32_t len)
}
void
-GrowableByteBuffer::putBytes(const char* buffer, uint32_t length)
+GrowableByteBuffer::putBytes(const void * buffer, uint32_t length)
{
char* buf = allocate(length);
memcpy(buf, buffer, length);
diff --git a/staging_vespalib/src/vespa/vespalib/util/growablebytebuffer.h b/staging_vespalib/src/vespa/vespalib/util/growablebytebuffer.h
index d32afeeabee..afbde04fb9b 100644
--- a/staging_vespalib/src/vespa/vespalib/util/growablebytebuffer.h
+++ b/staging_vespalib/src/vespa/vespalib/util/growablebytebuffer.h
@@ -45,7 +45,7 @@ public:
/**
Adds the given buffer to this buffer.
*/
- void putBytes(const char* buffer, uint32_t length);
+ void putBytes(const void * buffer, uint32_t length);
/**
Adds a short to the buffer.