diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-12-12 22:01:56 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-12-13 15:34:06 +0200 |
commit | a3cafbf39109fa2c0349f6ff6fb5cf432328231e (patch) | |
tree | 8265064de5aa7623fef84fd3ef35620172efc6a3 /platform/glfw/test_writer.cpp | |
parent | b2d06b8a17cd012d0c3accc95645780e6de6732a (diff) | |
download | qtlocation-mapboxgl-a3cafbf39109fa2c0349f6ff6fb5cf432328231e.tar.gz |
[glfw] TestOperation -> TestOperationSerializer
Diffstat (limited to 'platform/glfw/test_writer.cpp')
-rw-r--r-- | platform/glfw/test_writer.cpp | 10 |
1 files changed, 5 insertions, 5 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) {} |