static/source/qt5-mandelbrot/renderthread.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit bfc615e5643c347ff1251853129de4cbf825ba81 Author: Stephan Bergmann <stephan.bergm...@allotropia.de> AuthorDate: Thu Jan 18 13:18:47 2024 +0100 Commit: Stephan Bergmann <stephan.bergm...@allotropia.de> CommitDate: Thu Jan 18 17:07:56 2024 +0100 -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.bergm...@allotropia.de> 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]; };