aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmltc
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2021-10-25 09:38:40 +0200
committerAndrei Golubev <andrei.golubev@qt.io>2021-10-25 15:36:42 +0200
commit554be4e65cf57248a1a68461e2a31814985094d4 (patch)
tree176be6ebaadd3be9b8038e03bd9ef0986a2fca95 /tools/qmltc
parent3ccf37ce966923b6b65499f1116ee1941a1f36f1 (diff)
qmltcoutputprimitives.h: Fix simple CodeChecker issues
Output primitives have "scope" classes to control the way the output is written/recorded. Those classes have ctor/dtor but lack other special member functions, so fix that by delete'ing those - we don't need to copy or move the objects of these classes anyway Change-Id: Ia555aaff085a8a7a0182a2c9a2228949bfd7a940 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tools/qmltc')
-rw-r--r--tools/qmltc/qmltcoutputprimitives.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/qmltc/qmltcoutputprimitives.h b/tools/qmltc/qmltcoutputprimitives.h
index 37e1e05a02..975a99bd7b 100644
--- a/tools/qmltc/qmltcoutputprimitives.h
+++ b/tools/qmltc/qmltcoutputprimitives.h
@@ -74,6 +74,7 @@ public:
m_code->memberScopes.push(str);
}
~MemberNameScope() { m_code->memberScopes.pop(); }
+ Q_DISABLE_COPY_MOVE(MemberNameScope)
};
struct HeaderIndentationScope
@@ -81,6 +82,7 @@ public:
QmltcOutputWrapper *m_code;
HeaderIndentationScope(QmltcOutputWrapper *code) : m_code(code) { ++m_code->headerIndent; }
~HeaderIndentationScope() { --m_code->headerIndent; }
+ Q_DISABLE_COPY_MOVE(HeaderIndentationScope)
};
struct CppIndentationScope
@@ -88,6 +90,7 @@ public:
QmltcOutputWrapper *m_code;
CppIndentationScope(QmltcOutputWrapper *code) : m_code(code) { ++m_code->cppIndent; }
~CppIndentationScope() { --m_code->cppIndent; }
+ Q_DISABLE_COPY_MOVE(CppIndentationScope)
};
// appends string \a what with extra indentation \a extraIndent to current