Commit ef47ab7b authored by Ralf Habacker's avatar Ralf Habacker
Browse files

cppwriter: Add support for writing abstract methods

CCBUG:413519
parent 4f28aad2
......@@ -1259,8 +1259,11 @@ void CppWriter::writeOperations(UMLClassifier *c, UMLOperationList &oplist, bool
if (op->getOverride())
str += QLatin1String(" override");
if (isHeaderMethod && op->isAbstract()) {
str += QLatin1String(" = 0;");
}
// method body : only gets IF it is not in a header
if (isHeaderMethod && !policyExt()->getOperationsAreInline()) {
else if (isHeaderMethod && !policyExt()->getOperationsAreInline()) {
str += QLatin1Char(';'); // terminate now
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment