{ if ( NS_SUCCEEDED(status = raw_category_manager->initialize()) )
nsCategoryManagerFactory::CreateInstance( nsISupports* aOuter, const nsIID& aIID, void** aResult )  {    // assert(aResult);    *aResult = 0;    nsresult status = NS_OK;    if ( aOuter )      status = NS_ERROR_NO_AGGREGATION;    else      {        nsCategoryManager* raw_category_manager;        nsCOMPtr<nsICategoryManager> new_category_manager = (raw_category_manager = new nsCategoryManager);        if ( new_category_manager )          {            if ( NS_SUCCEEDED(status = raw_category_manager->initialize()) )              status = new_category_manager->QueryInterface(aIID, aResult);          }        else          status = NS_ERROR_OUT_OF_MEMORY;      }    return status;  }