From 59dcb2a7df76cc24bc2ccf03bd6f6c9efc0a3ffb Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Tue, 1 Sep 1998 00:23:47 +0000 Subject: [PATCH] Added closure argument to nsHashtable::Enumerate. Renamed NSRepository to nsRepository. git-svn-id: svn://10.0.0.236/trunk@8921 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/nsDeviceContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/gfx/src/nsDeviceContext.cpp b/mozilla/gfx/src/nsDeviceContext.cpp index 9c6668fe91e..db395ed4afc 100644 --- a/mozilla/gfx/src/nsDeviceContext.cpp +++ b/mozilla/gfx/src/nsDeviceContext.cpp @@ -50,7 +50,7 @@ DeviceContextImpl :: DeviceContextImpl() mColorSpace = nsnull; } -static PRBool DeleteValue(nsHashKey* aKey, void* aValue) +static PRBool DeleteValue(nsHashKey* aKey, void* aValue, void* closure) { delete ((nsString*)aValue); return PR_TRUE; @@ -140,7 +140,7 @@ NS_IMETHODIMP DeviceContextImpl :: CreateRenderingContext(nsIView *aView, nsIRen static NS_DEFINE_IID(kRCIID, NS_IRENDERING_CONTEXT_IID); aContext = nsnull; - rv = NSRepository::CreateInstance(kRCCID, nsnull, kRCIID, (void **)&pContext); + rv = nsRepository::CreateInstance(kRCCID, nsnull, kRCIID, (void **)&pContext); if (NS_OK == rv) { rv = InitRenderingContext(pContext, win);