diff options
author | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-05-11 15:33:12 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-05-13 08:08:19 +0000 |
commit | ad377730e432e3b4c02590210eafe8f0583145b1 (patch) | |
tree | 242942e8e252e66e0f1aa733b39a309522632c73 /src/plugins/texteditor/textdocumentlayout.h | |
parent | c9af39eb34d4f0e37f01236f680d422b10d157bd (diff) |
TextEditor: Optimize alignment in class Parenthesis
Change-Id: I25d00a7d68fb85797c9d6edc5a3e70b698ce6b9b
Task-number: QTCREATORBUG-14390
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/texteditor/textdocumentlayout.h')
-rw-r--r-- | src/plugins/texteditor/textdocumentlayout.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/texteditor/textdocumentlayout.h b/src/plugins/texteditor/textdocumentlayout.h index eaf018d82a..d43a3535d9 100644 --- a/src/plugins/texteditor/textdocumentlayout.h +++ b/src/plugins/texteditor/textdocumentlayout.h @@ -45,14 +45,14 @@ typedef QVector<Parenthesis> Parentheses; struct TEXTEDITOR_EXPORT Parenthesis { - enum Type { Opened, Closed }; + enum Type : char { Opened, Closed }; - inline Parenthesis() : type(Opened), pos(-1) {} + inline Parenthesis() : pos(-1), type(Opened) {} inline Parenthesis(Type t, QChar c, int position) - : type(t), chr(c), pos(position) {} - Type type; - QChar chr; + : pos(position), chr(c), type(t) {} int pos; + QChar chr; + Type type; }; class TEXTEDITOR_EXPORT CodeFormatterData |