Utils: Modernize further

Many issues, mostly in headers, were not addressed in
e38410b76c

modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
modernize-use-default-member-init
modernize-use-equals-default

Change-Id: I320a51726db881e582b898948d53735ebb06887a
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2018-07-23 10:45:40 +02:00
parent 00c926b6b4
commit f6943a712a
53 changed files with 117 additions and 173 deletions

View File

@@ -49,26 +49,25 @@ public:
Copy
};
EditOp(): type(Unset), pos1(0), pos2(0), length1(0), length2(0) {}
EditOp(Type t): type(t), pos1(0), pos2(0), length1(0), length2(0) {}
EditOp() = default;
EditOp(Type t): type(t) {}
Type type;
int pos1;
int pos2;
int length1;
int length2;
Type type = Unset;
int pos1 = 0;
int pos2 = 0;
int length1 = 0;
int length2 = 0;
QString text;
};
struct Range {
Range()
: start(0), end(0) {}
Range() = default;
Range(int start, int end)
: start(start), end(end) {}
int start;
int end;
int start = 0;
int end = 0;
};
public: