summaryrefslogtreecommitdiff
path: root/yapf
diff options
context:
space:
mode:
Diffstat (limited to 'yapf')
-rw-r--r--yapf/fixedsizearray.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/yapf/fixedsizearray.hpp b/yapf/fixedsizearray.hpp
index 06ff0703f..4ecedcd2f 100644
--- a/yapf/fixedsizearray.hpp
+++ b/yapf/fixedsizearray.hpp
@@ -41,7 +41,7 @@ struct CFixedSizeArrayT {
CFixedSizeArrayT(const CFixedSizeArrayT<Titem_, Tcapacity_>& src)
{
// share block (header + items) with the source array
- m_items = const_cast<Titem*>(src.m_items); // here we break the 'const' modifier
+ m_items = src.m_items;
RefCnt()++; // now we share block with the source
}