diff --git a/third_party/agg23/agg_array.h b/third_party/agg23/agg_array.h index d521b04..8dcb0af 100644 --- a/third_party/agg23/agg_array.h +++ b/third_party/agg23/agg_array.h @@ -32,7 +32,7 @@ pod_array() : m_size(0), m_capacity(0), m_array(0) {} pod_array(unsigned cap, unsigned extra_tail = 0); pod_array(const pod_array&); - const pod_array& operator = (const pod_array&); + pod_array& operator = (const pod_array&); void capacity(unsigned cap, unsigned extra_tail = 0); unsigned capacity() const { @@ -144,7 +144,7 @@ { memcpy(m_array, v.m_array, sizeof(T) * v.m_size); } -template const pod_array& +template pod_array& pod_array::operator = (const pod_array&v) { allocate(v.m_size); @@ -166,7 +166,7 @@ pod_deque(); pod_deque(unsigned block_ptr_inc); pod_deque(const pod_deque& v); - const pod_deque& operator = (const pod_deque& v); + pod_deque& operator = (const pod_deque& v); void remove_all() { m_size = 0; @@ -323,7 +323,7 @@ } } template -const pod_deque& pod_deque::operator = (const pod_deque& v) +pod_deque& pod_deque::operator = (const pod_deque& v) { unsigned i; for(i = m_num_blocks; i < v.m_num_blocks; ++i) {