Bug 1307360 - Use MOZ_MUST_USE in netwerk/protocol/device r=valentin

MozReview-Commit-ID: Kc7a7GksoZl

--HG--
extra : rebase_source : 3c42b88d4780c21401a1e10c87d3e51b83faba5c
This commit is contained in:
Wei-Cheng Pan 2016-10-03 14:54:10 +08:00
parent d82b36b981
commit bb8702d5d8
5 changed files with 10 additions and 10 deletions

View File

@ -25,7 +25,7 @@ class AndroidCaptureProvider final : public nsDeviceCaptureProvider {
NS_DECL_THREADSAFE_ISUPPORTS
nsresult Init(nsACString& aContentType, nsCaptureParams* aParams, nsIInputStream** aStream) override;
MOZ_MUST_USE nsresult Init(nsACString& aContentType, nsCaptureParams* aParams, nsIInputStream** aStream) override;
static AndroidCaptureProvider* sInstance;
};

View File

@ -37,7 +37,7 @@ public:
return mCallback;
}
bool Init(const nsCString& contentType, const uint32_t& camera, const uint32_t& width, const uint32_t& height, FrameCallback* callback);
MOZ_MUST_USE bool Init(const nsCString& contentType, const uint32_t& camera, const uint32_t& width, const uint32_t& height, FrameCallback* callback);
void Close();
uint32_t GetWidth() { return mWidth; }

View File

@ -23,7 +23,7 @@ struct nsCaptureParams {
class nsDeviceCaptureProvider : public nsISupports
{
public:
virtual nsresult Init(nsACString& aContentType,
virtual MOZ_MUST_USE nsresult Init(nsACString& aContentType,
nsCaptureParams* aParams,
nsIInputStream** aStream) = 0;
};

View File

@ -15,8 +15,8 @@ public:
nsDeviceChannel();
nsresult Init(nsIURI* uri);
nsresult OpenContentStream(bool aAsync,
MOZ_MUST_USE nsresult Init(nsIURI* uri);
MOZ_MUST_USE nsresult OpenContentStream(bool aAsync,
nsIInputStream **aStream,
nsIChannel **aChannel) override;

View File

@ -26,7 +26,7 @@ public:
nsDeviceProtocolHandler() {}
nsresult Init();
MOZ_MUST_USE nsresult Init();
};
} // namespace net