aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-11-26 11:39:52 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-11-26 11:39:52 +0200
commit5bd638d4a526a775892d995764144247d422e71f (patch)
treedf6632410c589d20aa68a19d1bb246c9f6012fd0
parenteca1c964126cc7f6ae62ab274f7f1a83f03fedfd (diff)
downloadminetest-5bd638d4a526a775892d995764144247d422e71f.tar.gz
minetest-5bd638d4a526a775892d995764144247d422e71f.tar.bz2
minetest-5bd638d4a526a775892d995764144247d422e71f.zip
Const-correct SharedBuffer::SharedBuffer(const T *t, unsigned int size)
-rw-r--r--src/util/pointer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/pointer.h b/src/util/pointer.h
index 766cc2328..775f0a336 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)