The explicit specifier used with a single argument constructor to prevent implicit type conversions.
Showing the changes to libavdevice/decklink_dec.cpp (1 of 1 file). Show all
Unified · Split
| @@ -577,7 +577,7 @@ static void handle_klv(AVFormatContext *avctx, decklink_ctx *ctx, IDeckLinkVideo · 576 unmodified lines | |||
| 577 | class decklink_input_callback : public IDeckLinkInputCallback | 577 | class decklink_input_callback : public IDeckLinkInputCallback |
| 578 | { | 578 | { |
| 579 | public: | 579 | public: |
| 580 | decklink_input_callback(AVFormatContext *_avctx); | 580 | explicit decklink_input_callback(AVFormatContext *_avctx); |
| 581 | ~decklink_input_callback(); | 581 | ~decklink_input_callback(); |
| 582 | 582 | ||
| 583 | virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, LPVOID *ppv) { return E_NOINTERFACE; } | 583 | virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, LPVOID *ppv) { return E_NOINTERFACE; } |