зеркало из 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
|
||||
nsObserverList::RemoveObserver(nsIObserver* anObserver)
|
||||
{
|
||||
PRBool removed;
|
||||
PRBool removed = PR_FALSE;
|
||||
|
||||
NS_ENSURE_ARG(anObserver);
|
||||
|
||||
|
|
|
@ -407,7 +407,7 @@ class nsAppDirectoryEnumerator : public nsISimpleEnumerator
|
|||
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) {}
|
||||
virtual ~nsPipeInputStream() { }
|
||||
nsresult Fill();
|
||||
|
||||
protected:
|
||||
|
@ -134,6 +135,7 @@ public:
|
|||
}
|
||||
|
||||
nsPipeOutputStream() : mWriterRefCnt(0), mBlocking(PR_TRUE) {}
|
||||
virtual ~nsPipeOutputStream() { }
|
||||
|
||||
protected:
|
||||
nsrefcnt mWriterRefCnt; // separate refcnt so that we know when to close the producer
|
||||
|
|
|
@ -109,7 +109,7 @@ xptiZipLoader::EnumerateZipEntries(nsILocalFile* file,
|
|||
|
||||
do
|
||||
{
|
||||
PRBool result;
|
||||
PRBool result = PR_FALSE;
|
||||
int index = 0;
|
||||
PRBool hasMore;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче