aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-14 16:49:59 +0100
committerDavid Robillard <d@drobilla.net>2020-12-14 16:49:59 +0100
commit2d76306c2aeb447e29b4cc93ab67ebe35b1d9d72 (patch)
tree224872fe92b6fe1688c5f3207ec04e958b1c0476
parentcd160070c2966448aca7f3ab1660d65a623074dc (diff)
downloadjalv-2d76306c2aeb447e29b4cc93ab67ebe35b1d9d72.tar.gz
jalv-2d76306c2aeb447e29b4cc93ab67ebe35b1d9d72.tar.bz2
jalv-2d76306c2aeb447e29b4cc93ab67ebe35b1d9d72.zip
Explicitly delete unused special member functions
-rw-r--r--.clang-tidy1
-rw-r--r--src/jalv_qt.cpp6
2 files changed, 6 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 0337127..9405211 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -4,7 +4,6 @@ Checks: >
-*-magic-numbers,
-*-named-parameter,
-*-narrowing-conversions,
- -*-special-member-functions,
-*-uppercase-literal-suffix,
-*-use-auto,
-bugprone-branch-clone,
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp
index 24425d6..b0381e7 100644
--- a/src/jalv_qt.cpp
+++ b/src/jalv_qt.cpp
@@ -77,6 +77,12 @@ public:
explicit FlowLayout(int margin, int hSpacing, int vSpacing);
+ FlowLayout(const FlowLayout&) = delete;
+ FlowLayout& operator=(const FlowLayout&) = delete;
+
+ FlowLayout(FlowLayout&&) = delete;
+ FlowLayout&& operator=(FlowLayout&&) = delete;
+
~FlowLayout() override;
void addItem(QLayoutItem* item) override;