aboutsummaryrefslogtreecommitdiff
path: root/src/kconfig_compiler/kconfig_compiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kconfig_compiler/kconfig_compiler.cpp')
-rw-r--r--src/kconfig_compiler/kconfig_compiler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kconfig_compiler/kconfig_compiler.cpp b/src/kconfig_compiler/kconfig_compiler.cpp
index b6b4dade..f04d0bd5 100644
--- a/src/kconfig_compiler/kconfig_compiler.cpp
+++ b/src/kconfig_compiler/kconfig_compiler.cpp
@@ -2300,6 +2300,8 @@ int main(int argc, char **argv)
cpp << " public:" << endl;
cpp << " " << cfg.className << "Helper() : q(nullptr) {}" << endl;
cpp << " ~" << cfg.className << "Helper() { delete q; }" << endl;
+ cpp << " " << cfg.className << "Helper(const " << cfg.className << "Helper&) = delete;" << endl;
+ cpp << " " << cfg.className << "Helper& operator=(const " << cfg.className << "Helper&) = delete;" << endl;
cpp << " " << cfg.className << " *q;" << endl;
cpp << "};" << endl;
endNamespaces(cfg.nameSpace, cpp);