mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 1266938 - Add explicit to ctors for helper classes in WidevineVideoDecoder. r=bustage
This commit is contained in:
parent
120f36bc75
commit
e3566aa24b
@ -155,7 +155,7 @@ WidevineVideoDecoder::Decode(GMPVideoEncodedFrame* aInputFrame,
|
||||
class CounterHelper {
|
||||
public:
|
||||
// RAII, increment counter
|
||||
CounterHelper(int32_t& counter)
|
||||
explicit CounterHelper(int32_t& counter)
|
||||
: mCounter(counter)
|
||||
{
|
||||
mCounter++;
|
||||
@ -176,7 +176,7 @@ private:
|
||||
// if forgotten with ForgetFrame.
|
||||
class FrameDestroyerHelper {
|
||||
public:
|
||||
FrameDestroyerHelper(GMPVideoi420Frame*& frame)
|
||||
explicit FrameDestroyerHelper(GMPVideoi420Frame*& frame)
|
||||
: frame(frame)
|
||||
{
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user