Bug 779442 - Fix a few more incorrect uses of nsresult; r=ehsan

This commit is contained in:
Aryeh Gregor 2012-08-01 11:17:10 +03:00
parent 7f3a5daa43
commit 56ba7bec2e
4 changed files with 4 additions and 4 deletions

View File

@ -137,7 +137,7 @@ NS_IMETHODIMP nsPrintProgress::RegisterListener(nsIWebProgressListener * listene
listener->OnStateChange(nullptr, nullptr, nsIWebProgressListener::STATE_STOP, NS_OK);
else
{
listener->OnStatusChange(nullptr, nullptr, 0, m_pendingStatus.get());
listener->OnStatusChange(nullptr, nullptr, NS_OK, m_pendingStatus.get());
if (m_pendingStateFlags != -1)
listener->OnStateChange(nullptr, nullptr, m_pendingStateFlags, m_pendingStateValue);
}

View File

@ -151,7 +151,7 @@ private:
// can't create a cycle.
mozilla::image::Image* mImage;
PRUint32 mState;
nsresult mImageStatus;
PRUint32 mImageStatus;
bool mHadLastPart;
};

View File

@ -317,7 +317,7 @@ void
nsBrowserStatusFilter::MaybeSendStatus()
{
if (mStatusIsDirty) {
mListener->OnStatusChange(nullptr, nullptr, 0, mStatusMsg.get());
mListener->OnStatusChange(nullptr, nullptr, NS_OK, mStatusMsg.get());
mCurrentStatusMsg = mStatusMsg;
mStatusIsDirty = false;
}

View File

@ -3591,7 +3591,7 @@ nsresult nsUrlClassifierStore::ReadPrefixes(FallibleTArray<PRUint32>& array,
const PRUint8 *blobdomain = mAllPrefixGetStatement->AsSharedBlob(0, &size);
if (!blobdomain || (size != DOMAIN_LENGTH))
return false;
return NS_OK;
domainval = *(reinterpret_cast<const PRUint32*>(blobdomain));