From: Mikko Rasa Date: Wed, 4 Jan 2023 14:27:34 +0000 (+0200) Subject: Convert empty default constructors and destructors to defaulted X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b99a9eb342d0f6ba5509c6d9f8ab0b0b5d5d2979;p=libs%2Fgui.git Convert empty default constructors and destructors to defaulted --- 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; };