Bug 1266938 - Add explicit to ctors for helper classes in WidevineVideoDecoder. r=bustage

This commit is contained in:
Chris Pearce 2016-07-27 11:27:08 +12:00
parent 120f36bc75
commit e3566aa24b

View File

@ -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)
{
}