Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/OpenGL/WebAssemblyOpenGLContext.cpp @ 1571:85e117739eca
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 21 Sep 2020 17:46:39 +0200 |
parents | 244ad1e4e76a |
children | e4a52cbbdd70 |
line wrap: on
line diff
--- a/OrthancStone/Sources/OpenGL/WebAssemblyOpenGLContext.cpp Mon Sep 21 14:50:26 2020 +0200 +++ b/OrthancStone/Sources/OpenGL/WebAssemblyOpenGLContext.cpp Mon Sep 21 17:46:39 2020 +0200 @@ -44,9 +44,9 @@ bool isContextLost_; public: - PImpl(const std::string& canvasSelector) - : canvasSelector_(canvasSelector) - , isContextLost_(false) + explicit PImpl(const std::string& canvasSelector) : + canvasSelector_(canvasSelector), + isContextLost_(false) { // Context configuration EmscriptenWebGLContextAttributes attr;