frameworks/base
Revision | 9d071102546d63f97b1a2851fa6f94c36a1f4cb8 (tree) |
---|---|
Time | 2012-01-11 20:31:28 |
Author | Josh Stone <cuviper@gmai...> |
Commiter | Chih-Wei Huang |
libutils: Fix an improper const-cast in RefBase
Under Fedora 15 Beta, gcc 4.6.0 warns:
trackMe is not a const function, so don't use const in the static_cast
to a weakref_impl pointer.
Change-Id: I3c9ba73eb127985f5f54197ffecf2939c50f632c
@@ -524,7 +524,7 @@ void RefBase::weakref_type::printRefs() const | ||
524 | 524 | |
525 | 525 | void RefBase::weakref_type::trackMe(bool enable, bool retain) |
526 | 526 | { |
527 | - static_cast<const weakref_impl*>(this)->trackMe(enable, retain); | |
527 | + static_cast<weakref_impl*>(this)->trackMe(enable, retain); | |
528 | 528 | } |
529 | 529 | |
530 | 530 | RefBase::weakref_type* RefBase::createWeak(const void* id) const |