head	1.2;
access;
symbols
	pkgsrc-2017Q3:1.1.0.36
	pkgsrc-2017Q3-base:1.1
	pkgsrc-2017Q2:1.1.0.32
	pkgsrc-2017Q2-base:1.1
	pkgsrc-2017Q1:1.1.0.30
	pkgsrc-2017Q1-base:1.1
	pkgsrc-2016Q4:1.1.0.28
	pkgsrc-2016Q4-base:1.1
	pkgsrc-2016Q3:1.1.0.26
	pkgsrc-2016Q3-base:1.1
	pkgsrc-2016Q2:1.1.0.24
	pkgsrc-2016Q2-base:1.1
	pkgsrc-2016Q1:1.1.0.22
	pkgsrc-2016Q1-base:1.1
	pkgsrc-2015Q4:1.1.0.20
	pkgsrc-2015Q4-base:1.1
	pkgsrc-2015Q3:1.1.0.18
	pkgsrc-2015Q3-base:1.1
	pkgsrc-2015Q2:1.1.0.16
	pkgsrc-2015Q2-base:1.1
	pkgsrc-2015Q1:1.1.0.14
	pkgsrc-2015Q1-base:1.1
	pkgsrc-2014Q4:1.1.0.12
	pkgsrc-2014Q4-base:1.1
	pkgsrc-2014Q3:1.1.0.10
	pkgsrc-2014Q3-base:1.1
	pkgsrc-2014Q2:1.1.0.8
	pkgsrc-2014Q2-base:1.1
	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	2017.10.27.13.31.33;	author ryoon;	state dead;
branches;
next	1.1;
commitid	HU6QHWErWohm4HcA;

1.1
date	2013.08.29.12.56.15;	author joerg;	state Exp;
branches;
next	;
commitid	FT3r93zoNLQeJl3x;


desc
@@


1.2
log
@Remove firefox10
@
text
@$NetBSD: patch-xpcom_base_nsTraceRefcntImpl.cpp,v 1.1 2013/08/29 12:56:15 joerg Exp $

--- xpcom/base/nsTraceRefcntImpl.cpp.orig	2013-08-28 12:34:21.000000000 +0000
+++ 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,
@


1.1
log
@Do not use dynamic_cast without RTTI, reinterpret_cast is better here
anyway. Don't use false as pointer literal.
@
text
@d1 1
a1 1
$NetBSD$
@

