summaryrefslogtreecommitdiff
path: root/static/source/qt5-mandelbrot/renderthread.h
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2024-01-18 13:18:47 +0100
committerStephan Bergmann <stephan.bergmann@allotropia.de>2024-01-18 17:07:56 +0100
commitbfc615e5643c347ff1251853129de4cbf825ba81 (patch)
treee43a35fc0d26588c1cfd2da898561ae647eec3f8 /static/source/qt5-mandelbrot/renderthread.h
parentfdf7bd6c1cb8756d37813e72fbbec704d1c0f770 (diff)
-Werror,-Wdeprecated-enum-float-conversion (Emscripten)
> static/source/qt5-mandelbrot/renderthread.cxx:61:62: error: arithmetic between floating-point type 'double' and enumeration type 'RenderThread::(unnamed enum at workdir/CustomTarget/static/qt5-mandelbrot/../../../../static/source/qt5-mandelbrot/renderthread.h:92:5)' is deprecated [-Werror,-Wdeprecated-enum-float-conversion] > m_colormap[i] = rgbFromWaveLength(380.0 + (i * 400.0 / ColormapSize)); > ~~~~~~~~~ ^ ~~~~~~~~~~~~ Change-Id: I97dab1d11177a6e20ddd6703c146e31e316e0071 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162251 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'static/source/qt5-mandelbrot/renderthread.h')
-rw-r--r--static/source/qt5-mandelbrot/renderthread.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/static/source/qt5-mandelbrot/renderthread.h b/static/source/qt5-mandelbrot/renderthread.h
index 16c0d86fd46c..f344a9c2b224 100644
--- a/static/source/qt5-mandelbrot/renderthread.h
+++ b/static/source/qt5-mandelbrot/renderthread.h
@@ -89,9 +89,6 @@ private:
bool m_restart = false;
bool m_abort = false;
- enum
- {
- ColormapSize = 512
- };
+ static constexpr int ColormapSize = 512;
uint m_colormap[ColormapSize];
};