summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-08-29 12:56:49 +0000
committerjoerg <joerg@pkgsrc.org>2013-08-29 12:56:49 +0000
commit308dfa21578918ae542bf464642087b1ddb13863 (patch)
treeb0a134343d14d9f56527673e1e7e1b9487ab55d3 /devel
parent8167f01dc24970ba38671c829301ee286377681c (diff)
downloadpkgsrc-308dfa21578918ae542bf464642087b1ddb13863.tar.gz
Don't use dynamic_cast without RTTI.
Diffstat (limited to 'devel')
-rw-r--r--devel/xulrunner192/distinfo4
-rw-r--r--devel/xulrunner192/patches/patch-xpcom_base_nsTraceRefcntImpl.cpp22
2 files changed, 22 insertions, 4 deletions
diff --git a/devel/xulrunner192/distinfo b/devel/xulrunner192/distinfo
index e28b0a6aa3d..a15b2743b37 100644
--- a/devel/xulrunner192/distinfo
+++ b/devel/xulrunner192/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2013/01/09 10:34:03 martin Exp $
+$NetBSD: distinfo,v 1.14 2013/08/29 12:56:49 joerg Exp $
SHA1 (firefox-3.6.28.source.tar.bz2) = adeaa9bdd367878c5b522766e681798178e31577
RMD160 (firefox-3.6.28.source.tar.bz2) = 87cfca8e3f1df30e06eccffbf994825904eeedbc
@@ -78,7 +78,7 @@ SHA1 (patch-xn) = b0d0943b2bc39d8395055550c0fedfa447a5de01
SHA1 (patch-xo) = 437cbc7e0ed8777ae2313165f8754759d8eee01d
SHA1 (patch-xpcom_base_nsAutoRef.h) = 763482028ff87b25fbb3e2c4b43fd29f7a5c769d
SHA1 (patch-xpcom_base_nsDebugImpl.cpp) = 9dfe9cbd1f6a91ec38d8a4b742f0afe72c7ac7a7
-SHA1 (patch-xpcom_base_nsTraceRefcntImpl.cpp) = 283391c1bdd1933996f8cbf4957f0ce2a911db65
+SHA1 (patch-xpcom_base_nsTraceRefcntImpl.cpp) = 11c564be19018dac54e3ad7c6b39faa2355f8815
SHA1 (patch-xpcom_glue_nsBaseHashtable.h) = 22846bf7777fc45f2eeab43983d73e4f56d32a2b
SHA1 (patch-xpcom_glue_nsClassHashtable.h) = b14852d07b8b84131509581d22af916e1139253c
SHA1 (patch-xpcom_glue_nsEnumeratorUtils.cpp) = b9e6e2fc935993bcdb8fe3669f19c4aa6b5e89c3
diff --git a/devel/xulrunner192/patches/patch-xpcom_base_nsTraceRefcntImpl.cpp b/devel/xulrunner192/patches/patch-xpcom_base_nsTraceRefcntImpl.cpp
index 5d89b0e6f0e..b872186ad08 100644
--- a/devel/xulrunner192/patches/patch-xpcom_base_nsTraceRefcntImpl.cpp
+++ b/devel/xulrunner192/patches/patch-xpcom_base_nsTraceRefcntImpl.cpp
@@ -1,7 +1,25 @@
-$NetBSD: patch-xpcom_base_nsTraceRefcntImpl.cpp,v 1.1 2012/11/18 01:55:52 joerg Exp $
+$NetBSD: patch-xpcom_base_nsTraceRefcntImpl.cpp,v 1.2 2013/08/29 12:56:49 joerg Exp $
---- xpcom/base/nsTraceRefcntImpl.cpp.orig 2012-11-17 15:50:56.000000000 +0000
+--- xpcom/base/nsTraceRefcntImpl.cpp.orig 2012-03-06 14:45:48.000000000 +0000
+++ xpcom/base/nsTraceRefcntImpl.cpp
+@@ -1175,7 +1175,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,
+@@ -1216,7 +1216,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,
@@ -1347,7 +1347,7 @@ nsTraceRefcntImpl::LogReleaseCOMPtr(void
return NS_OK;
}