Skip to content

Commit

Permalink
Update qavstreamframe.h
Browse files Browse the repository at this point in the history
Single-argument constructors must be marked explicit to avoid unintentional implicit conversions
  • Loading branch information
mxnt10 authored Jul 3, 2024
1 parent 32a862a commit f5ff1c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QtAVPlayer/qavstreamframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class QAVStreamFrame

QAVStream stream() const;
void setStream(const QAVStream &stream);
operator bool() const;
virtual explicit operator bool() const;

double pts() const;
double duration() const;
Expand All @@ -34,7 +34,7 @@ class QAVStreamFrame
int receive();

protected:
QAVStreamFrame(QAVStreamFramePrivate &d);
explicit QAVStreamFrame(QAVStreamFramePrivate &d);

std::unique_ptr<QAVStreamFramePrivate> d_ptr;
Q_DECLARE_PRIVATE(QAVStreamFrame)
Expand Down

0 comments on commit f5ff1c9

Please sign in to comment.