frameworks/base
Révision | b40d69b3637487ecc48c26906d949995360ef625 (tree) |
---|---|
l'heure | 2011-06-10 23:44:01 |
Auteur | 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
@@ -480,7 +480,7 @@ void RefBase::weakref_type::printRefs() const | ||
480 | 480 | |
481 | 481 | void RefBase::weakref_type::trackMe(bool enable, bool retain) |
482 | 482 | { |
483 | - static_cast<const weakref_impl*>(this)->trackMe(enable, retain); | |
483 | + static_cast<weakref_impl*>(this)->trackMe(enable, retain); | |
484 | 484 | } |
485 | 485 | |
486 | 486 | RefBase::weakref_type* RefBase::createWeak(const void* id) const |