diff options
author | tron <tron@openttd.org> | 2006-10-28 12:32:55 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-10-28 12:32:55 +0000 |
commit | 93f1f8ee532109faf767fc118531f8caf094fcaa (patch) | |
tree | 9711a8ab1d03367217227109b81ffd460ccfe91b | |
parent | cb4918d06b2cd8568625e460107825f0268bf98e (diff) | |
download | openttd-93f1f8ee532109faf767fc118531f8caf094fcaa.tar.xz |
(svn r6991) Remove an unnecessary const_cast<> and incorrect comment (There is a difference between const FOO* and FOO* const)
-rw-r--r-- | yapf/fixedsizearray.hpp | 2 |
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 } |