Const-correct SharedBuffer::SharedBuffer(const T *t, unsigned int size)
authorPerttu Ahola <celeron55@gmail.com>
Mon, 26 Nov 2012 09:39:52 +0000 (11:39 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 26 Nov 2012 09:39:52 +0000 (11:39 +0200)
src/util/pointer.h

index 766cc23289266c82aaf133c66bace7600583f349..775f0a3362de5fe0ae853ca3e5e53f2e049b4f15 100644 (file)
@@ -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)