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>
This commit is contained in:
Nikolai Kosjar
2015-05-11 15:33:12 +02:00
parent c9af39eb34
commit ad377730e4

View File

@@ -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