OSDN Git Service

libutils: Fix an improper const-cast in RefBase
[android-x86/frameworks-base.git] / libs / utils / RefBase.cpp
index bb6c125..2034486 100644 (file)
@@ -524,7 +524,7 @@ void RefBase::weakref_type::printRefs() const
 
 void RefBase::weakref_type::trackMe(bool enable, bool retain)
 {
-    static_cast<const weakref_impl*>(this)->trackMe(enable, retain);
+    static_cast<weakref_impl*>(this)->trackMe(enable, retain);
 }
 
 RefBase::weakref_type* RefBase::createWeak(const void* id) const