From: Uwe Hermann Date: Fri, 10 Mar 2017 21:09:58 +0000 (+0100) Subject: Use the "default" keyword. X-Git-Tag: pulseview-0.4.0~158 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8b2eb22ed4f467f5364e8e9824a12137e2433b7e;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/pv/data/decode/rowdata.cpp b/pv/data/decode/rowdata.cpp index 83074e00..af1fc449 100644 --- a/pv/data/decode/rowdata.cpp +++ b/pv/data/decode/rowdata.cpp @@ -25,10 +25,6 @@ namespace pv { namespace data { namespace decode { -RowData::RowData() -{ -} - uint64_t RowData::get_max_sample() const { if (annotations_.empty()) diff --git a/pv/data/decode/rowdata.hpp b/pv/data/decode/rowdata.hpp index f0e3534f..b6271111 100644 --- a/pv/data/decode/rowdata.hpp +++ b/pv/data/decode/rowdata.hpp @@ -31,7 +31,7 @@ namespace decode { class RowData { public: - RowData(); + RowData() = default; public: uint64_t get_max_sample() const; diff --git a/pv/devices/device.cpp b/pv/devices/device.cpp index ec4318b4..c6784d40 100644 --- a/pv/devices/device.cpp +++ b/pv/devices/device.cpp @@ -36,10 +36,6 @@ using Glib::Variant; namespace pv { namespace devices { -Device::Device() -{ -} - Device::~Device() { if (session_) diff --git a/pv/devices/device.hpp b/pv/devices/device.hpp index ceca0777..b4518fbe 100644 --- a/pv/devices/device.hpp +++ b/pv/devices/device.hpp @@ -38,7 +38,7 @@ namespace devices { class Device { protected: - Device(); + Device() = default; public: virtual ~Device();