diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-08-20 14:33:47 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-08-20 18:12:22 -0300 |
commit | df48c2eadf550938062e8e5af53a5372d97bcdb5 (patch) | |
tree | 5fa32870048383ce5ab92bad0315b0fe58baa5eb | |
parent | 9572636c419f2948cbf1814b78137f0b2e9bc93c (diff) |
Removed generation of #warning in cpp files move this message to generator report.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Hugo Parente Lima <hugo.pl@gmail.com>
-rw-r--r-- | cppgenerator.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index 38972aefa..b79cbd91c 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -441,8 +441,7 @@ void CppGenerator::writeVirtualMethodNative(QTextStream &s, const AbstractMetaFu Indentation indentation(INDENT); if (func->isAbstract() && func->isModifiedRemoved()) { - s << INDENT << "#warning Pure virtual method \"" << func->ownerClass()->name() << "::" << func->minimalSignature(); - s << "\" must be implement but was completely removed on typesystem." << endl; + ReportHandler::warning("Pure virtual method \"" + func->ownerClass()->name() + "::" + func->minimalSignature() + "\" must be implement but was completely removed on typesystem."); s << INDENT << "return"; if (func->type()) { s << ' '; |