summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/treewalker.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-06 11:03:01 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-06 11:08:01 +0200
commit2e20ae3c1b57169497f6f3904623be4f5e617e12 (patch)
treed8ed7e12b011a4a887ec3b2879267e3555c5116d /src/tools/uic/treewalker.h
parent5343a7018eadecbe30b698a22a31034adba9b756 (diff)
uic: Fix some clang warnings
- Use range-based for - Use isEmpty() instead .size(), streamline code - Fix warnings about class definitions, use Q_DISABLE_COPY_MOVE and '= default' for trivial constructors Change-Id: I76255fd9d80c3faffebda9a438e86e918c16d289 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/tools/uic/treewalker.h')
-rw-r--r--src/tools/uic/treewalker.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/uic/treewalker.h b/src/tools/uic/treewalker.h
index 1ad9b51409..3777229517 100644
--- a/src/tools/uic/treewalker.h
+++ b/src/tools/uic/treewalker.h
@@ -77,6 +77,9 @@ class DomButtonGroup;
struct TreeWalker
{
+ Q_DISABLE_COPY_MOVE(TreeWalker)
+
+ TreeWalker() = default;
inline virtual ~TreeWalker() = default;
virtual void acceptUI(DomUI *ui);