[PATCH-Android,android/frameworks/base] Modified to eliminate build errors using GCC 4.5/4.6.

Message ID 1300252598-1653-7-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat March 16, 2011, 5:16 a.m.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Change-Id: Id31f863427cd3a7d5d5abced71de78a76ae3d028
---
 libs/utils/RefBase.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/libs/utils/RefBase.cpp b/libs/utils/RefBase.cpp
index 0bd1af4..d28b751 100644
--- a/libs/utils/RefBase.cpp
+++ b/libs/utils/RefBase.cpp
@@ -480,7 +480,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