InputBar: mark constrictor as explicit

Suggested-By:

Clang-Tidy: Single-argument constructors must be marked explicit to
avoid unintentional implicit conversions

More info: https://clang.llvm.org/extra/clang-tidy/checks/google-explicit-constructor.html
pull/833/head
Marcus Hoffmann 3 years ago
parent 8aa4a60d12
commit 9676b7709d
  1. 2
      src/timeline/InputBar.h

@ -32,7 +32,7 @@ class InputBar : public QObject
Q_PROPERTY(QString text READ text NOTIFY textChanged)
public:
InputBar(TimelineModel *parent)
explicit InputBar(TimelineModel *parent)
: QObject()
, room(parent)
{

Loading…
Cancel
Save