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

cppwriter: In case of interfaces, do not write a superfluous .cpp file

parent c3afcda6
......@@ -123,7 +123,7 @@ void CppWriter::writeClass(UMLClassifier *c)
// Determine whether the implementation file is required.
// (It is not required if the class is an enumeration.)
bool need_impl = true;
if (c->baseType() == UMLObject::ot_Enum) {
if (c->baseType() == UMLObject::ot_Enum || c->isInterface()) {
need_impl = false;
if (need_impl) {
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