From: Perttu Ahola Date: Mon, 26 Nov 2012 09:39:52 +0000 (+0200) Subject: Const-correct SharedBuffer::SharedBuffer(const T *t, unsigned int size) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=5bd638d4a526a775892d995764144247d422e71f;p=zefram%2Fminetest%2Fminetest_engine.git Const-correct SharedBuffer::SharedBuffer(const T *t, unsigned int size) --- diff --git a/src/util/pointer.h b/src/util/pointer.h index 766cc232..775f0a33 100644 --- a/src/util/pointer.h +++ b/src/util/pointer.h @@ -222,7 +222,7 @@ public: /* Copies whole buffer */ - SharedBuffer(T *t, unsigned int size) + SharedBuffer(const T *t, unsigned int size) { m_size = size; if(m_size != 0)