aboutsummaryrefslogtreecommitdiffstats
path: root/headergenerator.cpp
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-02-01 20:31:31 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-02-01 20:42:31 -0200
commit7bed51517c9bcb9e5f152751b1a3c43d71682f55 (patch)
tree0fbd12a00c9cc6a6cda99d8786a3b3b1e299cee7 /headergenerator.cpp
parent1e70badf548becec2a45b0b451e8a5cb322c0dc0 (diff)
Fixed added constructor generation.
Reviewed by Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'headergenerator.cpp')
-rw-r--r--headergenerator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/headergenerator.cpp b/headergenerator.cpp
index b955ee79e..14004e422 100644
--- a/headergenerator.cpp
+++ b/headergenerator.cpp
@@ -111,6 +111,9 @@ void HeaderGenerator::writeFunction(QTextStream& s, const AbstractMetaFunction*
if (func->isCopyConstructor())
return;
+ if (func->isConstructor() && func->isUserAdded())
+ return;
+
#ifdef AVOID_PROTECTED_HACK
if (func->isProtected() && !func->isConstructor()) {
s << INDENT << "inline " << (func->isStatic() ? "static " : "");