aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-12 11:40:32 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-08-12 15:53:10 -0300
commit8dcacb90f0d61b47e295daa501fb9c2af97b42f3 (patch)
tree74b574131f8ad05c3ec5f76511b49f83fccdd610
parent388c5084c66244c3d5753dd2bedcfc4c0135d4c1 (diff)
Use isValuetype to verify if the class has copy constructor.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--headergenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/headergenerator.cpp b/headergenerator.cpp
index 2176baf6..5e39ec95 100644
--- a/headergenerator.cpp
+++ b/headergenerator.cpp
@@ -91,7 +91,7 @@ void HeaderGenerator::generateClass(QTextStream& s, const AbstractMetaClass* met
s << endl << '{' << endl << "public:" << endl;
- if (isCopyable(metaClass))
+ if (metaClass->typeEntry()->isValue())
writeCopyCtor(s, metaClass);
bool hasVirtualFunction = false;