зеркало из https://github.com/mozilla/gecko-dev.git
Fixing some warnings in xpcom. Bug 118377, r=hwaara, sr=shaver.
This commit is contained in:
Родитель
14bc10c2a2
Коммит
40ccb42c7c
|
@ -102,7 +102,7 @@ nsObserverList::AddObserver(nsIObserver* anObserver, PRBool ownsWeak)
|
||||||
nsresult
|
nsresult
|
||||||
nsObserverList::RemoveObserver(nsIObserver* anObserver)
|
nsObserverList::RemoveObserver(nsIObserver* anObserver)
|
||||||
{
|
{
|
||||||
PRBool removed;
|
PRBool removed = PR_FALSE;
|
||||||
|
|
||||||
NS_ENSURE_ARG(anObserver);
|
NS_ENSURE_ARG(anObserver);
|
||||||
|
|
||||||
|
|
|
@ -407,7 +407,7 @@ class nsAppDirectoryEnumerator : public nsISimpleEnumerator
|
||||||
return *result ? NS_OK : NS_ERROR_FAILURE;
|
return *result ? NS_OK : NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
~nsAppDirectoryEnumerator() // I don't expect to be subclassed
|
virtual ~nsAppDirectoryEnumerator()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,6 +99,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
nsPipeInputStream() : mReaderRefCnt(0), mBlocking(PR_TRUE) {}
|
nsPipeInputStream() : mReaderRefCnt(0), mBlocking(PR_TRUE) {}
|
||||||
|
virtual ~nsPipeInputStream() { }
|
||||||
nsresult Fill();
|
nsresult Fill();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -134,6 +135,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
nsPipeOutputStream() : mWriterRefCnt(0), mBlocking(PR_TRUE) {}
|
nsPipeOutputStream() : mWriterRefCnt(0), mBlocking(PR_TRUE) {}
|
||||||
|
virtual ~nsPipeOutputStream() { }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
nsrefcnt mWriterRefCnt; // separate refcnt so that we know when to close the producer
|
nsrefcnt mWriterRefCnt; // separate refcnt so that we know when to close the producer
|
||||||
|
|
|
@ -109,7 +109,7 @@ xptiZipLoader::EnumerateZipEntries(nsILocalFile* file,
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
PRBool result;
|
PRBool result = PR_FALSE;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
PRBool hasMore;
|
PRBool hasMore;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче