summaryrefslogtreecommitdiff
path: root/mail/thunderbird10/patches/patch-mozilla_xpcom_base_nsTraceRefcntImpl.cpp
blob: 34daa0fda98beeb158df50c2c149159563d31d37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$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<void *>(aObject);
+  void *object = reinterpret_cast<void *>(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<void *>(aObject);
+  void *object = reinterpret_cast<void *>(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,