# HG changeset patch # User tron # Date 2006-10-28 12:32:55 # Node ID fdd36077b23c2e77d2888b9d24eaa0ecc0dd1453 # Parent 5fa9645883e70df246fb09a4df3a2048db9d4405 (svn r6991) Remove an unnecessary const_cast<> and incorrect comment (There is a difference between const FOO* and FOO* const) diff --git a/yapf/fixedsizearray.hpp b/yapf/fixedsizearray.hpp --- a/yapf/fixedsizearray.hpp +++ b/yapf/fixedsizearray.hpp @@ -41,7 +41,7 @@ struct CFixedSizeArrayT { CFixedSizeArrayT(const CFixedSizeArrayT& src) { // share block (header + items) with the source array - m_items = const_cast(src.m_items); // here we break the 'const' modifier + m_items = src.m_items; RefCnt()++; // now we share block with the source }