From 751b6c57fe28812c268bf6bce430ae45b5c0a6e1 Mon Sep 17 00:00:00 2001 From: mar77i Date: Sat, 27 Apr 2024 19:36:56 +0200 Subject: [PATCH] consolidate constructor initializers somewhat --- mandel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mandel.cpp b/mandel.cpp index 94d4024..a6946a2 100644 --- a/mandel.cpp +++ b/mandel.cpp @@ -81,7 +81,7 @@ static inline QImage *setup_image(QImage *img, const QSize &size) { } MandelSettings::MandelSettings(size_t max_iter, const QSize size) -: img(nullptr) { +: img(nullptr) { reset(max_iter, size); } @@ -153,7 +153,9 @@ QJsonObject MandelSettings::to_json() { MandelCell::MandelCell(const MandelParams *params) : params(params) {} MandelCell::MandelCell(const MandelCell &cell) -: params(cell.params), pos(cell.pos), result(cell.result), +: params(cell.params), + pos(cell.pos), + result(cell.result), rpos0(cell.rpos0) {} void MandelCell::setup(const QPoint pos) { -- 2.47.1