History

avdevice/decklink_dec: add explicit specifier

The explicit specifier used with a single argument constructor to prevent implicit type conversions.

Jun Zhao committed 3 years ago

Commit ab3bd5e1 parent 1258f991 file · +1 −1Browse files

Unified · Split

libavdevice/decklink_dec.cpp+1−1
@@ -577,7 +577,7 @@ static void handle_klv(AVFormatContext *avctx, decklink_ctx *ctx, IDeckLinkVideo · 576 unmodified lines
577577 class decklink_input_callback : public IDeckLinkInputCallback
578578 {
579579 public:
580− decklink_input_callback(AVFormatContext *_avctx);
580+ explicit decklink_input_callback(AVFormatContext *_avctx);
581581 ~decklink_input_callback();
582582
583583 virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, LPVOID *ppv) { return E_NOINTERFACE; }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t