code clean up. use contract id instead of cid. remove bogus comments.

This commit is contained in:
sspitzer%netscape.com 2002-10-02 07:59:50 +00:00
Родитель 9b71127ce1
Коммит 9cceb7e6c4
2 изменённых файлов: 2 добавлений и 8 удалений

Просмотреть файл

@ -44,10 +44,6 @@
#include "nsIServiceManager.h"
#include "nsIURI.h"
static NS_DEFINE_CID(kStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
#define COMPOSE_BE_URL "chrome://messenger/locale/messengercompose/composeMsgs.properties"
nsComposeStringService::nsComposeStringService()
{
NS_INIT_ISUPPORTS();
@ -98,10 +94,10 @@ nsComposeStringService::GetBundle(nsIStringBundle **aResult)
nsresult
nsComposeStringService::InitializeStringBundle()
{
nsCOMPtr<nsIStringBundleService> stringService = do_GetService(kStringBundleServiceCID);
nsCOMPtr<nsIStringBundleService> stringService = do_GetService(NS_STRINGBUNDLE_CONTRACTID);
NS_ENSURE_TRUE(stringService, NS_ERROR_FAILURE);
NS_ENSURE_SUCCESS(stringService->CreateBundle(COMPOSE_BE_URL, getter_AddRefs(mComposeStringBundle)),
NS_ENSURE_SUCCESS(stringService->CreateBundle("chrome://messenger/locale/messengercompose/composeMsgs.properties", getter_AddRefs(mComposeStringBundle)),
NS_ERROR_FAILURE);
return NS_OK;
}

Просмотреть файл

@ -44,8 +44,6 @@
#include "nsMsgMimeCID.h"
#include "nsIMimeConverter.h"
/* This is the next generation string retrieval call */
extern "C" MimeEncoderData *
MIME_B64EncoderInit(nsresult (*output_fn) (const char *buf, PRInt32 size, void *closure), void *closure)
{