From 9676b7709d92fd474c29134144a4636a7cb1e30d Mon Sep 17 00:00:00 2001 From: Marcus Hoffmann Date: Fri, 3 Dec 2021 01:29:15 +0100 Subject: [PATCH] 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 --- src/timeline/InputBar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline/InputBar.h b/src/timeline/InputBar.h index 3beff0b3..399dd116 100644 --- a/src/timeline/InputBar.h +++ b/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) {