From fd2b26b16940a38e8975b3ddec025d6e819da7fa Mon Sep 17 00:00:00 2001 From: "dp%netscape.com" Date: Tue, 22 Jun 1999 17:26:26 +0000 Subject: [PATCH] Make VC5.0 happy with pointers to member function. git-svn-id: svn://10.0.0.236/trunk@36285 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsAppShellService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/xpfe/appshell/src/nsAppShellService.cpp b/mozilla/xpfe/appshell/src/nsAppShellService.cpp index a7d83f664a0..cfe98fb3899 100644 --- a/mozilla/xpfe/appshell/src/nsAppShellService.cpp +++ b/mozilla/xpfe/appshell/src/nsAppShellService.cpp @@ -121,6 +121,7 @@ protected: void InitializeComponent( const nsCID &aComponentCID ); void ShutdownComponent( const nsCID &aComponentCID ); + typedef void (nsAppShellService::*EnumeratorMemberFunction)(const nsCID&); void EnumerateComponents( void (nsAppShellService::*function)(const nsCID&) ); nsIAppShell* mAppShell; @@ -249,7 +250,7 @@ done: // Apply function (Initialize/Shutdown) to each app shell component. void -nsAppShellService::EnumerateComponents( void (nsAppShellService::*function)( const nsCID& ) ) { +nsAppShellService::EnumerateComponents( EnumeratorMemberFunction function ) { nsresult rv; nsIRegistry *registry = 0; nsIRegistry::Key key;