summaryrefslogtreecommitdiffstats
path: root/examples/corelib/threads/mandelbrot/renderthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/corelib/threads/mandelbrot/renderthread.h')
-rw-r--r--examples/corelib/threads/mandelbrot/renderthread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/corelib/threads/mandelbrot/renderthread.h b/examples/corelib/threads/mandelbrot/renderthread.h
index 4f0394d554..934cc17d74 100644
--- a/examples/corelib/threads/mandelbrot/renderthread.h
+++ b/examples/corelib/threads/mandelbrot/renderthread.h
@@ -78,7 +78,7 @@ protected:
void run() override;
private:
- uint rgbFromWaveLength(double wave);
+ static uint rgbFromWaveLength(double wave);
QMutex mutex;
QWaitCondition condition;
@@ -86,8 +86,8 @@ private:
double centerY;
double scaleFactor;
QSize resultSize;
- bool restart;
- bool abort;
+ bool restart = false;
+ bool abort = false;
enum { ColormapSize = 512 };
uint colormap[ColormapSize];