From 93f1f8ee532109faf767fc118531f8caf094fcaa Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 28 Oct 2006 12:32:55 +0000 Subject: (svn r6991) Remove an unnecessary const_cast<> and incorrect comment (There is a difference between const FOO* and FOO* const) --- yapf/fixedsizearray.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& 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 } -- cgit v1.2.3-70-g09d2