From 937251fbdc8f4192777d9e11034c55d19c6e5528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sat, 6 Oct 2018 21:31:12 +0200 Subject: [PATCH] Some more cosmetics --- src/common/range.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/range.h b/src/common/range.h index 9f508202..7730eb05 100644 --- a/src/common/range.h +++ b/src/common/range.h @@ -8,7 +8,7 @@ class Range { public: Range() {_min = 0; _max = 0;} - Range(int min, int max) {_min = min, _max = max;} + Range(int min, int max) : _min(min), _max(max) {} int min() const {return _min;} int max() const {return _max;} @@ -29,7 +29,7 @@ class RangeF { public: RangeF() {_min = 0; _max = 0;} - RangeF(qreal min, qreal max) {_min = min, _max = max;} + RangeF(qreal min, qreal max) : _min(min), _max(max) {} RangeF operator&(const RangeF &r) const; RangeF &operator&=(const RangeF &r) {*this = *this & r; return *this;}