From dba31d43b3bd91e4a3c79973c69b867a38480ec5 Mon Sep 17 00:00:00 2001 From: "scc%netscape.com" Date: Tue, 7 Dec 1999 15:51:21 +0000 Subject: [PATCH] and there's another instance of the build-busting old cast still in the file git-svn-id: svn://10.0.0.236/trunk@55585 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/tests/TestObserverService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/xpcom/tests/TestObserverService.cpp b/mozilla/xpcom/tests/TestObserverService.cpp index d3cf1c64d85..92d26f7f095 100644 --- a/mozilla/xpcom/tests/TestObserverService.cpp +++ b/mozilla/xpcom/tests/TestObserverService.cpp @@ -137,7 +137,7 @@ int main(int argc, char *argv[]) if (NS_SUCCEEDED(rv)) { rv = inst->QueryInterface(NS_GET_IID(nsIObserver),(void**)&anObserver); cout << "Calling observe on enumerated observer " - << ((TestObserver*)inst)->mName << "..." << endl; + << NS_REINTERPRET_CAST(TestObserver*, NS_REINTERPRET_CAST(void*, inst))->mName << "..." << endl; rv = anObserver->Observe( inst, topicA.GetUnicode(), nsString("during enumeration").GetUnicode() ); testResult(rv); }