From 09c4d8e4fc3bce74903ba49aed9b8608bbad6e94 Mon Sep 17 00:00:00 2001 From: "dp%netscape.com" Date: Tue, 22 Jun 1999 15:19:31 +0000 Subject: [PATCH] The new method of autoregistration is really simple. A NULL for the directory will do the right thing. --- intl/strres/tests/StringBundleTest.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/intl/strres/tests/StringBundleTest.cpp b/intl/strres/tests/StringBundleTest.cpp index 120e0e13c0c6..6d0a19ae5867 100644 --- a/intl/strres/tests/StringBundleTest.cpp +++ b/intl/strres/tests/StringBundleTest.cpp @@ -128,19 +128,7 @@ get_applocale(void) //////////////////////////////////////////////////////////////////////////////////////////////////// nsresult NS_AutoregisterComponents() { - nsIFileSpec* spec = NS_LocateFileOrDirectory( - nsSpecialFileSpec::App_ComponentsDirectory); - if (!spec) - return NS_ERROR_FAILURE; - - char *componentsDirPath; - nsresult rv = spec->GetNSPRPath(&componentsDirPath); - if (NS_FAILED(rv)) - return rv; - - if (componentsDirPath) - rv = nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, componentsDirPath); - NS_RELEASE(spec); + nsresult rv = nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, NULL /* default */); return rv; }