From b99a9eb342d0f6ba5509c6d9f8ab0b0b5d5d2979 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 4 Jan 2023 16:27:34 +0200 Subject: [PATCH] Convert empty default constructors and destructors to defaulted --- source/graphics/imageloader.h | 4 ++-- source/graphics/simplewindow.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/graphics/imageloader.h b/source/graphics/imageloader.h index 345068c..d824291 100644 --- a/source/graphics/imageloader.h +++ b/source/graphics/imageloader.h @@ -34,9 +34,9 @@ protected: class RegisterBase { protected: - RegisterBase() { } + RegisterBase() = default; public: - virtual ~RegisterBase() { } + virtual ~RegisterBase() = default; virtual unsigned get_signature_size() const = 0; virtual bool detect(const std::string &) const = 0; diff --git a/source/graphics/simplewindow.h b/source/graphics/simplewindow.h index 26abd6a..c4fc3cf 100644 --- a/source/graphics/simplewindow.h +++ b/source/graphics/simplewindow.h @@ -17,7 +17,7 @@ class MSPGUI_API SimpleWindowBase protected: Display dpy; - SimpleWindowBase() { } + SimpleWindowBase() = default; }; -- 2.45.2