diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-11 11:58:19 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-05-12 18:07:36 +0300 |
commit | 1e1da36123c4520846e0318fcb71551573b54e18 (patch) | |
tree | 002114bcf335e12fb206493aff3f7c9fb9f9fa9b /platform/default | |
parent | bd7fb64baec7879931d15090ac4d0c10d853702e (diff) | |
download | qtlocation-mapboxgl-1e1da36123c4520846e0318fcb71551573b54e18.tar.gz |
[tidy] modernize-use-equals-default
Diffstat (limited to 'platform/default')
-rw-r--r-- | platform/default/mbgl/gl/headless_backend.cpp | 3 | ||||
-rw-r--r-- | platform/default/mbgl/gl/headless_backend.hpp | 2 | ||||
-rw-r--r-- | platform/default/sqlite3.cpp | 6 |
3 files changed, 4 insertions, 7 deletions
diff --git a/platform/default/mbgl/gl/headless_backend.cpp b/platform/default/mbgl/gl/headless_backend.cpp index d2fbf4e4c7..df3a517823 100644 --- a/platform/default/mbgl/gl/headless_backend.cpp +++ b/platform/default/mbgl/gl/headless_backend.cpp @@ -9,8 +9,7 @@ namespace mbgl { -HeadlessBackend::HeadlessBackend() { -} +HeadlessBackend::HeadlessBackend() = default; HeadlessBackend::HeadlessBackend(std::shared_ptr<HeadlessDisplay> display_) : display(std::move(display_)) { diff --git a/platform/default/mbgl/gl/headless_backend.hpp b/platform/default/mbgl/gl/headless_backend.hpp index 128b579bd2..26033acf82 100644 --- a/platform/default/mbgl/gl/headless_backend.hpp +++ b/platform/default/mbgl/gl/headless_backend.hpp @@ -20,7 +20,7 @@ public: void invalidate() override; struct Impl { - virtual ~Impl() {} + virtual ~Impl() = default; virtual void activateContext() = 0; virtual void deactivateContext() {} }; diff --git a/platform/default/sqlite3.cpp b/platform/default/sqlite3.cpp index 4cbe1df775..0707f9255c 100644 --- a/platform/default/sqlite3.cpp +++ b/platform/default/sqlite3.cpp @@ -107,8 +107,7 @@ Database &Database::operator=(Database &&other) { return *this; } -Database::~Database() { -} +Database::~Database() = default; void Database::setBusyTimeout(std::chrono::milliseconds timeout) { assert(impl); @@ -151,8 +150,7 @@ Statement &Statement::operator=(Statement &&other) { return *this; } -Statement::~Statement() { -} +Statement::~Statement() = default; template <> void Statement::bind(int offset, std::nullptr_t) { assert(impl); |