From 71d7a9399db016cba83ccd63c6ba7e0fac1cd44d Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 13 Nov 2016 11:03:26 +0100 Subject: Bug 774273 - INLINE_SIMPLE_STRUCTS with enums in classes does not work --- src/classdef.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/classdef.cpp b/src/classdef.cpp index 51fb8c6..111d59b 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -573,7 +573,9 @@ void ClassDef::internalInsertMember(MemberDef *md, break; case Public: addMemberToList(MemberListType_pubTypes,md,TRUE); - isSimple=QCString(md->typeString()).find(")(")==-1; + isSimple=!md->isEnumerate() && + !md->isEnumValue() && + QCString(md->typeString()).find(")(")==-1; // func ptr typedef break; case Private: addMemberToList(MemberListType_priTypes,md,TRUE); -- cgit v0.12