forked from qt-creator/qt-creator
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user