diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 17:43:37 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-30 23:37:44 +0300 |
commit | 62b543e44a5d63dd79dfc7ab68696dc8a3f8e3ef (patch) | |
tree | 3e1b27e9cedbc53b43ec952579553618731ab671 /platform/glfw | |
parent | 65f4df5190d764a12a2c8054bfce2838545917e7 (diff) | |
download | qtlocation-mapboxgl-62b543e44a5d63dd79dfc7ab68696dc8a3f8e3ef.tar.gz |
[core] Fix google-explicit-constructor errors
As reported by clang-tidy-8.
Diffstat (limited to 'platform/glfw')
-rw-r--r-- | platform/glfw/glfw_gl_backend.cpp | 3 | ||||
-rw-r--r-- | platform/glfw/test_writer.cpp | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/platform/glfw/glfw_gl_backend.cpp b/platform/glfw/glfw_gl_backend.cpp index 0a949016ed..6eb58d4fa6 100644 --- a/platform/glfw/glfw_gl_backend.cpp +++ b/platform/glfw/glfw_gl_backend.cpp @@ -7,8 +7,7 @@ class GLFWGLRenderableResource final : public mbgl::gl::RenderableResource { public: - GLFWGLRenderableResource(GLFWGLBackend& backend_) : backend(backend_) { - } + explicit GLFWGLRenderableResource(GLFWGLBackend& backend_) : backend(backend_) {} void bind() override { backend.setFramebufferBinding(0); diff --git a/platform/glfw/test_writer.cpp b/platform/glfw/test_writer.cpp index 9fe06cc2ca..71dae3ef5d 100644 --- a/platform/glfw/test_writer.cpp +++ b/platform/glfw/test_writer.cpp @@ -20,7 +20,7 @@ public: class SetCamera final : public TestOperationSerializer { public: - SetCamera(mbgl::CameraOptions camera_) : camera(std::move(camera_)) {} + explicit SetCamera(mbgl::CameraOptions camera_) : camera(std::move(camera_)) {} void serialize(Writer& writer) const override { if (camera.zoom) { @@ -59,7 +59,7 @@ private: class SetStyle final : public TestOperationSerializer { public: - SetStyle(const mbgl::style::Style& style) : url(style.getURL()) {} + explicit SetStyle(const mbgl::style::Style& style) : url(style.getURL()) {} void serialize(Writer& writer) const override { writer.StartArray(); @@ -74,7 +74,7 @@ private: class SetInitialSize final : public TestOperationSerializer { public: - SetInitialSize(const mbgl::Size& size) : width(size.width), height(size.height) {} + explicit SetInitialSize(const mbgl::Size& size) : width(size.width), height(size.height) {} void serialize(Writer& writer) const override { writer.Key("width"); |