From: Uwe Hermann Date: Fri, 10 Mar 2017 21:09:58 +0000 (+0100) Subject: Use the "default" keyword. X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=commitdiff_plain;h=8b2eb22ed4f467f5364e8e9824a12137e2433b7e 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 83074e0..af1fc44 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 f0e3534..b627111 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 ec4318b..c6784d4 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 ceca077..b4518fb 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();