Skip to content

Commit

Permalink
Inline attribute got reset for functions returning an explicit struct…
Browse files Browse the repository at this point in the history
… type
  • Loading branch information
Dimitri van Heesch committed Apr 2, 2017
1 parent 82ed99b commit 127a43d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scanner.l
Expand Up @@ -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 ) ;
Expand Down

0 comments on commit 127a43d

Please sign in to comment.