From: Uwe Hermann Date: Tue, 21 Mar 2017 23:45:20 +0000 (+0100) Subject: Use the "default" keyword. X-Git-Tag: pulseview-0.4.0~123 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=db1aabc15dc8680673b943c2dd0f38a83c32a1d9;p=pulseview.git Use the "default" keyword. This patch was generated using clang-tidy: clang-tidy -checks="-*,modernize-use-equals-default" -fix (with manual fixups to move the "= default" to the .hpp) --- diff --git a/android/assetreader.cpp b/android/assetreader.cpp index d0af1678..05160d6e 100644 --- a/android/assetreader.cpp +++ b/android/assetreader.cpp @@ -29,9 +29,6 @@ using namespace pv; using std::string; using std::unique_ptr; -AndroidAssetReader::~AndroidAssetReader() -{} - void AndroidAssetReader::open(struct sr_resource *res, string name) { if (res->type == SR_RESOURCE_FIRMWARE) { diff --git a/android/assetreader.hpp b/android/assetreader.hpp index 819945c2..dea71ebd 100644 --- a/android/assetreader.hpp +++ b/android/assetreader.hpp @@ -29,8 +29,8 @@ namespace pv { class AndroidAssetReader : public sigrok::ResourceReader { public: - AndroidAssetReader() {} - virtual ~AndroidAssetReader(); + AndroidAssetReader() = default; + virtual ~AndroidAssetReader() = default; private: void open(struct sr_resource *res, string name) override; diff --git a/pv/data/signaldata.hpp b/pv/data/signaldata.hpp index 034703e1..374a6f99 100644 --- a/pv/data/signaldata.hpp +++ b/pv/data/signaldata.hpp @@ -36,7 +36,7 @@ class SignalData { public: SignalData() = default; - virtual ~SignalData() {} + virtual ~SignalData() = default; public: virtual vector< shared_ptr > segments() const = 0;