Author: carnold
Date: Mon Oct 23 14:12:03 2006
New Revision: 467128

URL: http://svn.apache.org/viewvc?view=rev&rev=467128
Log:
LOGCXX-152: cast warning on ObjectPtrT<InterfacPtr>::cast()

Modified:
    logging/log4cxx/trunk/include/log4cxx/helpers/objectptr.h

Modified: logging/log4cxx/trunk/include/log4cxx/helpers/objectptr.h
URL: 
http://svn.apache.org/viewvc/logging/log4cxx/trunk/include/log4cxx/helpers/objectptr.h?view=diff&rev=467128&r1=467127&r2=467128
==============================================================================
--- logging/log4cxx/trunk/include/log4cxx/helpers/objectptr.h (original)
+++ logging/log4cxx/trunk/include/log4cxx/helpers/objectptr.h Mon Oct 23 
14:12:03 2006
@@ -133,7 +133,7 @@
                T* newPtr = 0;
                if (p1 != 0)
                {
-                  newPtr = (T*)p1->cast(T::getStaticClass());
+                  newPtr = 
reinterpret_cast<T*>(const_cast<void*>(p1->cast(T::getStaticClass())));
                }
                operator=(newPtr);
             }


Reply via email to