summaryrefslogtreecommitdiff
path: root/platform/glfw
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 17:43:37 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-30 23:37:44 +0300
commit62b543e44a5d63dd79dfc7ab68696dc8a3f8e3ef (patch)
tree3e1b27e9cedbc53b43ec952579553618731ab671 /platform/glfw
parent65f4df5190d764a12a2c8054bfce2838545917e7 (diff)
downloadqtlocation-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.cpp3
-rw-r--r--platform/glfw/test_writer.cpp6
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");