Commit ad377730 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

TextEditor: Optimize alignment in class Parenthesis



Change-Id: I25d00a7d68fb85797c9d6edc5a3e70b698ce6b9b
Task-number: QTCREATORBUG-14390
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent c9af39eb
...@@ -45,14 +45,14 @@ typedef QVector<Parenthesis> Parentheses; ...@@ -45,14 +45,14 @@ typedef QVector<Parenthesis> Parentheses;
struct TEXTEDITOR_EXPORT Parenthesis 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) inline Parenthesis(Type t, QChar c, int position)
: type(t), chr(c), pos(position) {} : pos(position), chr(c), type(t) {}
Type type;
QChar chr;
int pos; int pos;
QChar chr;
Type type;
}; };
class TEXTEDITOR_EXPORT CodeFormatterData class TEXTEDITOR_EXPORT CodeFormatterData
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment