From 127a43d464790dd0312794fe7ae1d92247cd9eef Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 2 Apr 2017 13:57:51 +0200 Subject: Inline attribute got reset for functions returning an explicit struct type --- src/scanner.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scanner.l b/src/scanner.l index fe8716e..9ff082d 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -1723,7 +1723,8 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) bool isVolatile=decl.find("volatile")!=-1; current->section = Entry::CLASS_SEC ; current->spec = Entry::Struct | - (current->spec & Entry::Published); // preserve UNO IDL + (current->spec & Entry::Published) | + (current->spec & Entry::Inline); // preserve UNO IDL & Inline attributes // bug 582676: can be a struct nested in an interface so keep insideObjC state //current->objc = insideObjC = FALSE; addType( current ) ; -- cgit v0.12