summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-12-12 22:01:56 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-12-13 15:34:06 +0200
commita3cafbf39109fa2c0349f6ff6fb5cf432328231e (patch)
tree8265064de5aa7623fef84fd3ef35620172efc6a3 /platform
parentb2d06b8a17cd012d0c3accc95645780e6de6732a (diff)
downloadqtlocation-mapboxgl-a3cafbf39109fa2c0349f6ff6fb5cf432328231e.tar.gz
[glfw] TestOperation -> TestOperationSerializer
Diffstat (limited to 'platform')
-rw-r--r--platform/glfw/test_writer.cpp10
-rw-r--r--platform/glfw/test_writer.hpp6
2 files changed, 8 insertions, 8 deletions
diff --git a/platform/glfw/test_writer.cpp b/platform/glfw/test_writer.cpp
index d125170aed..9debaad643 100644
--- a/platform/glfw/test_writer.cpp
+++ b/platform/glfw/test_writer.cpp
@@ -10,14 +10,14 @@
using Writer = rapidjson::PrettyWriter<rapidjson::StringBuffer>;
-class TestOperation {
+class TestOperationSerializer {
public:
- virtual ~TestOperation() = default;
+ virtual ~TestOperationSerializer() = default;
virtual void serialize(Writer& writer) const = 0;
};
-class SetCamera final : public TestOperation {
+class SetCamera final : public TestOperationSerializer {
public:
SetCamera(const mbgl::CameraOptions& camera_) : camera(camera_) {}
@@ -56,7 +56,7 @@ private:
mbgl::CameraOptions camera;
};
-class SetStyle final : public TestOperation {
+class SetStyle final : public TestOperationSerializer {
public:
SetStyle(const mbgl::style::Style& style) : url(style.getURL()) {}
@@ -71,7 +71,7 @@ private:
std::string url;
};
-class SetInitialSize final : public TestOperation {
+class SetInitialSize final : public TestOperationSerializer {
public:
SetInitialSize(const mbgl::Size& size) : width(size.width), height(size.height) {}
diff --git a/platform/glfw/test_writer.hpp b/platform/glfw/test_writer.hpp
index 8e41e3e49a..881b0d16fa 100644
--- a/platform/glfw/test_writer.hpp
+++ b/platform/glfw/test_writer.hpp
@@ -8,7 +8,7 @@
#include <string>
#include <vector>
-class TestOperation;
+class TestOperationSerializer;
class TestWriter final {
public:
@@ -24,6 +24,6 @@ public:
private:
std::string serialize() const;
- std::vector<std::unique_ptr<TestOperation>> operations;
- std::unique_ptr<TestOperation> initialSize;
+ std::vector<std::unique_ptr<TestOperationSerializer>> operations;
+ std::unique_ptr<TestOperationSerializer> initialSize;
};