From 8b2eb22ed4f467f5364e8e9824a12137e2433b7e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 10 Mar 2017 22:09:58 +0100 Subject: [PATCH] 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) --- pv/data/decode/rowdata.cpp | 4 ---- pv/data/decode/rowdata.hpp | 2 +- pv/devices/device.cpp | 4 ---- pv/devices/device.hpp | 2 +- 4 files changed, 2 insertions(+), 10 deletions(-) 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(); -- 2.30.2