From 8dcacb90f0d61b47e295daa501fb9c2af97b42f3 Mon Sep 17 00:00:00 2001 From: Renato Filho Date: Thu, 12 Aug 2010 11:40:32 -0300 Subject: Use isValuetype to verify if the class has copy constructor. Reviewer: Marcelo Lira Luciano Wolf --- headergenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headergenerator.cpp b/headergenerator.cpp index 2176baf6c..5e39ec95b 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; -- cgit v1.2.3