summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorMarcus Hoffmann <bubu@bubu1.eu>2021-12-03 01:29:15 +0100
committerMarcus Hoffmann <bubu@bubu1.eu>2021-12-03 01:37:00 +0100
commit9676b7709d92fd474c29134144a4636a7cb1e30d (patch)
treeb3ce2754a7ceb3b76dc3ce0d7f3934b51c1bb5bf /src/timeline
parentInputBar: use X.empty() instead of !X.size() (diff)
downloadnheko-9676b7709d92fd474c29134144a4636a7cb1e30d.tar.xz
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
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/InputBar.h2
1 files changed, 1 insertions, 1 deletions
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)
     {