projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eca1c96
)
Const-correct SharedBuffer::SharedBuffer(const T *t, unsigned int size)
author
Perttu Ahola
<celeron55@gmail.com>
Mon, 26 Nov 2012 09:39:52 +0000
(11:39 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Mon, 26 Nov 2012 09:39:52 +0000
(11:39 +0200)
src/util/pointer.h
patch
|
blob
|
history
diff --git
a/src/util/pointer.h
b/src/util/pointer.h
index 766cc23289266c82aaf133c66bace7600583f349..775f0a3362de5fe0ae853ca3e5e53f2e049b4f15 100644
(file)
--- 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)