From 32199de9d912291b77166343f608c6e1a77ab06e Mon Sep 17 00:00:00 2001 From: Roquette Date: Mon, 1 Feb 2010 11:56:52 +0100 Subject: Added semicolon after } when creating unnamed enumeration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTCREATORBUG-643 Merge-request: 109 Reviewed-by: Thorbjørn Lindeijer --- src/libs/cplusplus/MatchingText.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/cplusplus/MatchingText.cpp b/src/libs/cplusplus/MatchingText.cpp index 6e4c791511..fe390cb9b3 100644 --- a/src/libs/cplusplus/MatchingText.cpp +++ b/src/libs/cplusplus/MatchingText.cpp @@ -271,7 +271,7 @@ QString MatchingText::insertParagraphSeparator(const QTextCursor &tc) const // anonymous namespace return QLatin1String("}"); - } else if (token.is(T_CLASS) || token.is(T_STRUCT) || token.is(T_UNION)) { + } else if (token.is(T_CLASS) || token.is(T_STRUCT) || token.is(T_UNION) || token.is(T_ENUM)) { if (tk[index - 2].is(T_TYPEDEF)) { // recognized: // typedef struct { -- cgit v1.2.1