Bug 1557225. Make MakeInputStream MOZ_MUST_USE. r=aosmond

Differential Revision: https://phabricator.services.mozilla.com/D33905

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Timothy Nikkel 2019-06-06 10:31:02 +00:00
parent c9ee4bb3ac
commit 1466b9f2a6
2 changed files with 4 additions and 3 deletions

View File

@ -48,7 +48,8 @@ class nsIconChannel final : public nsIChannel, public nsIStreamListener {
nsCOMPtr<nsIInputStreamPump> mPump;
nsCOMPtr<nsIStreamListener> mListener;
nsresult MakeInputStream(nsIInputStream** _retval, bool nonBlocking);
MOZ_MUST_USE nsresult MakeInputStream(nsIInputStream** _retval,
bool nonBlocking);
nsresult ExtractIconInfoFromUrl(nsIFile** aLocalFile,
uint32_t* aDesiredImageSize,

View File

@ -69,8 +69,8 @@ class nsIconChannel final : public nsIChannel, public nsIStreamListener {
nsresult GetHIconFromFile(bool aNonBlocking, HICON* hIcon);
nsresult GetHIconFromFile(nsIFile* aLocalFile, const nsAutoString& aPath,
UINT aInfoFlags, HICON* hIcon);
nsresult MakeInputStream(nsIInputStream** _retval, bool aNonBlocking,
HICON aIcon);
MOZ_MUST_USE nsresult MakeInputStream(nsIInputStream** _retval,
bool aNonBlocking, HICON aIcon);
// Functions specific to Vista and above
protected: