mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
d82b36b981
commit
bb8702d5d8
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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; }
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
|
||||
|
@ -26,7 +26,7 @@ public:
|
||||
|
||||
nsDeviceProtocolHandler() {}
|
||||
|
||||
nsresult Init();
|
||||
MOZ_MUST_USE nsresult Init();
|
||||
};
|
||||
|
||||
} // namespace net
|
||||
|
Loading…
Reference in New Issue
Block a user