From 6568ddd326105094122448b1ee4503b7399104ba Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Fri, 26 Feb 1999 18:17:41 +0000 Subject: [PATCH] fix call to CreateInstance, now that you can create one with a ProgID --- xpfe/bootstrap/nsAppRunner.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/xpfe/bootstrap/nsAppRunner.cpp b/xpfe/bootstrap/nsAppRunner.cpp index 19bfe47646eb..d13d2f662fb6 100644 --- a/xpfe/bootstrap/nsAppRunner.cpp +++ b/xpfe/bootstrap/nsAppRunner.cpp @@ -222,16 +222,11 @@ int main(int argc, char* argv[]) /* Comments/questions to alecf@netscape.com */ { nsIAppShellService *messenger; - nsCID cid; - nsresult result = - nsRepository::ProgIDToCLSID("component://netscape/messenger", &cid); - - if (NS_SUCCEEDED(result)) { - result = nsRepository::CreateInstance(cid, - NULL, - nsIAppShellService::IID, - (void **)&messenger); - } + const char *messengerProgID = "component://netscape/messenger"; + nsresult result = nsRepository::CreateInstance(messengerProgID, + nsnull, + nsIAppShellService::IID(), + (void **)&messenger); if (NS_SUCCEEDED(result)) { result = messenger->Initialize(); }