]> git.mar77i.info Git - bigintmandel/commitdiff
consolidate constructor initializers somewhat
authormar77i <mar77i@protonmail.ch>
Sat, 27 Apr 2024 17:36:56 +0000 (19:36 +0200)
committermar77i <mar77i@protonmail.ch>
Sat, 27 Apr 2024 17:36:56 +0000 (19:36 +0200)
mandel.cpp

index 94d4024a9a01cbe0ab097388dff35351ddea2058..a6946a25549e9bcca113dde431eb0c389b5de7c9 100644 (file)
@@ -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) {