head 1.2; access; symbols pkgsrc-2014Q1:1.1.0.6 pkgsrc-2014Q1-base:1.1 pkgsrc-2013Q4:1.1.0.4 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.2 pkgsrc-2013Q3-base:1.1; locks; strict; comment @// @; 1.2 date 2014.06.11.12.36.16; author joerg; state dead; branches; next 1.1; commitid XezNXGnjQIlDq6Ex; 1.1 date 2013.08.29.12.57.35; author joerg; state Exp; branches; next ; commitid echnsA7TaJbTJl3x; desc @@ 1.2 log @Retire old thunderbird versions. @ text @$NetBSD: patch-mozilla_xpcom_base_nsTraceRefcntImpl.cpp,v 1.1 2013/08/29 12:57:35 joerg Exp $ --- mozilla/xpcom/base/nsTraceRefcntImpl.cpp.orig 2013-01-05 14:22:57.000000000 +0000 +++ mozilla/xpcom/base/nsTraceRefcntImpl.cpp @@@@ -1187,7 +1187,7 @@@@ NS_LogCOMPtrAddRef(void* aCOMPtr, nsISup { #if defined(NS_IMPL_REFCNT_LOGGING) && defined(HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR) // Get the most-derived object. - void *object = dynamic_cast(aObject); + void *object = reinterpret_cast(aObject); // This is a very indirect way of finding out what the class is // of the object being logged. If we're logging a specific type, @@@@ -1228,7 +1228,7 @@@@ NS_LogCOMPtrRelease(void* aCOMPtr, nsISu { #if defined(NS_IMPL_REFCNT_LOGGING) && defined(HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR) // Get the most-derived object. - void *object = dynamic_cast(aObject); + void *object = reinterpret_cast(aObject); // This is a very indirect way of finding out what the class is // of the object being logged. If we're logging a specific type, @ 1.1 log @Don't use dynamic_cast without RTTI. Don't use false as pointer literal. @ text @d1 1 a1 1 $NetBSD$ @