Make VC5.0 happy with pointers to member function.

This commit is contained in:
dp@netscape.com
1999-06-22 17:26:26 +00:00
parent 4a87ca22a8
commit f5dd7778ac

View File

@@ -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;