Get rid of operator==(nsCOMPtr, int) usage because it fries gcc-2.7.2.3's mind with new string stuff. r=scc

This commit is contained in:
waterson%netscape.com 2000-04-27 04:44:56 +00:00
Родитель a6e9e1dcfa
Коммит 00eb3e5b8c
4 изменённых файлов: 14 добавлений и 14 удалений

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

@ -447,7 +447,7 @@ NS_IMETHODIMP nsRegistry::OpenWellKnownRegistry( nsWellKnownRegistry regid ) {
directoryService->Get("xpcom.currentProcess.componentRegistry", NS_GET_IID(nsIFile),
getter_AddRefs(registryLocation));
if (registryLocation != nsnull)
if (registryLocation)
{
foundReg = PR_TRUE;
registryLocation->GetPath(&regFile); // dougt fix...

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

@ -447,7 +447,7 @@ NS_IMETHODIMP nsRegistry::OpenWellKnownRegistry( nsWellKnownRegistry regid ) {
directoryService->Get("xpcom.currentProcess.componentRegistry", NS_GET_IID(nsIFile),
getter_AddRefs(registryLocation));
if (registryLocation != nsnull)
if (registryLocation)
{
foundReg = PR_TRUE;
registryLocation->GetPath(&regFile); // dougt fix...

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

@ -128,8 +128,8 @@ nsFSStringConversion::PrepareFSCharset()
{
// lazy eval of the file system charset
NS_WITH_SERVICE(nsIPlatformCharset, pcharset, NS_PLATFORMCHARSET_PROGID, &res);
NS_ASSERTION((NS_SUCCEEDED(res) && (nsnull != pcharset)), "cannot get platform charset");
if(NS_SUCCEEDED(res) && (nsnull != pcharset)) {
NS_ASSERTION((NS_SUCCEEDED(res) && pcharset), "cannot get platform charset");
if(NS_SUCCEEDED(res) && pcharset) {
res = pcharset->GetCharset(kPlatformCharsetSel_FileName, mFSCharset);
}
}
@ -139,17 +139,17 @@ NS_IMETHODIMP
nsFSStringConversion::PrepareEncoder()
{
nsresult res = NS_OK;
if(nsnull == mEncoder)
if(! mEncoder)
{
res = PrepareFSCharset();
if(NS_SUCCEEDED(res)) {
NS_WITH_SERVICE(nsICharsetConverterManager,
ucmgr, NS_CHARSETCONVERTERMANAGER_PROGID, &res);
NS_ASSERTION((NS_SUCCEEDED(res) && (nsnull != ucmgr)),
NS_ASSERTION((NS_SUCCEEDED(res) && ucmgr),
"cannot get charset converter manager ");
if(NS_SUCCEEDED(res) && (nsnull != ucmgr))
if(NS_SUCCEEDED(res) && ucmgr)
res = ucmgr->GetUnicodeEncoder( &mFSCharset, getter_AddRefs(mEncoder));
NS_ASSERTION((NS_SUCCEEDED(res) && (nsnull != mEncoder)),
NS_ASSERTION((NS_SUCCEEDED(res) && mEncoder),
"cannot find the unicode encoder");
}
}
@ -159,17 +159,17 @@ NS_IMETHODIMP
nsFSStringConversion::PrepareDecoder()
{
nsresult res = NS_OK;
if(nsnull == mDecoder)
if(! mDecoder)
{
res = PrepareFSCharset();
if(NS_SUCCEEDED(res)) {
NS_WITH_SERVICE(nsICharsetConverterManager,
ucmgr, NS_CHARSETCONVERTERMANAGER_PROGID, &res);
NS_ASSERTION((NS_SUCCEEDED(res) && (nsnull != ucmgr)),
NS_ASSERTION((NS_SUCCEEDED(res) && ucmgr),
"cannot get charset converter manager ");
if(NS_SUCCEEDED(res) && (nsnull != ucmgr))
if(NS_SUCCEEDED(res) && ucmgr)
res = ucmgr->GetUnicodeDecoder( &mFSCharset, getter_AddRefs(mDecoder));
NS_ASSERTION((NS_SUCCEEDED(res) && (nsnull != mDecoder)),
NS_ASSERTION((NS_SUCCEEDED(res) && mDecoder),
"cannot find the unicode decoder");
}
}

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

@ -121,7 +121,7 @@ nsProxyObjectManager::~nsProxyObjectManager()
nsProxyObjectManager *
nsProxyObjectManager::GetInstance()
{
if (mInstance == nsnull)
if (! mInstance)
{
mInstance = new nsProxyObjectManager();
}
@ -163,7 +163,7 @@ nsProxyObjectManager::GetProxyObject(nsIEventQueue *destQueue, REFNSIID aIID, ns
// check to see if the eventQ is on our thread. If so, just return the real object.
if (postQ != nsnull && !(proxyType & PROXY_ASYNC) && !(proxyType & PROXY_ALWAYS))
if (postQ && !(proxyType & PROXY_ASYNC) && !(proxyType & PROXY_ALWAYS))
{
PRBool aResult;
postQ->IsQueueOnCurrentThread(&aResult);