Bug 573530: Remove unused variable in nsXPComInit.cpp. r=bsmedberg
authorDaniel Holbert <dholbert@cs.stanford.edu>
Wed, 23 Jun 2010 17:30:59 -0700
changeset 46138 18b815589624ed38cb3efdc0c6645729c7dc7261
parent 46137 33bc7661cc131818eb4f454aac75e8422ca1a7a6
child 46139 e7b4fc236003bf469b10e73f0f0ed6689ee400af
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs573530
milestone1.9.3a6pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 573530: Remove unused variable in nsXPComInit.cpp. r=bsmedberg
xpcom/build/nsXPComInit.cpp
--- a/xpcom/build/nsXPComInit.cpp
+++ b/xpcom/build/nsXPComInit.cpp
@@ -692,18 +692,18 @@ NS_InitXPCOM3(nsIServiceManager* *result
                           "nsSimpleUnicharStreamFactory",
                           NS_SIMPLE_UNICHAR_STREAM_FACTORY_CONTRACTID,
                           nsSimpleUnicharStreamFactory::GetInstance());
     }
 
     NS_TIME_FUNCTION_MARK("Next: interface info manager init");
 
     // The iimanager constructor searches and registers XPT files.
-    nsIInterfaceInfoManager* iim =
-        xptiInterfaceInfoManager::GetSingleton();
+    // (We trigger the singleton's lazy construction here to make that happen.)
+    (void) xptiInterfaceInfoManager::GetSingleton();
 
     NS_TIME_FUNCTION_MARK("Next: try to load compreg.dat");
 
     // "Re-register the world" if compreg.dat doesn't exist
     rv = nsComponentManagerImpl::gComponentManager->ReadPersistentRegistry();
     if (NS_FAILED(rv)) {
         NS_TIME_FUNCTION_MARK("Next: try to register all components (compreg.dat not found)");