From 27a77747868b0097b63f77fa224ea047ca11ecbb Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Fri, 10 Jun 2022 00:09:23 -0600 Subject: [PATCH] Use = default for trivial virtual destructors --- src/SFML/Graphics/RenderTarget.cpp | 4 +--- src/SFML/Graphics/RenderTextureImpl.cpp | 5 +---- src/SFML/Graphics/RenderWindow.cpp | 5 +---- src/SFML/Graphics/Shape.cpp | 4 +--- src/SFML/Graphics/Transformable.cpp | 4 +--- src/SFML/Network/Packet.cpp | 5 +---- 6 files changed, 6 insertions(+), 21 deletions(-) diff --git a/src/SFML/Graphics/RenderTarget.cpp b/src/SFML/Graphics/RenderTarget.cpp index 8503f19a..f2a6bc35 100644 --- a/src/SFML/Graphics/RenderTarget.cpp +++ b/src/SFML/Graphics/RenderTarget.cpp @@ -155,9 +155,7 @@ m_id (0) //////////////////////////////////////////////////////////// -RenderTarget::~RenderTarget() -{ -} +RenderTarget::~RenderTarget() = default; //////////////////////////////////////////////////////////// diff --git a/src/SFML/Graphics/RenderTextureImpl.cpp b/src/SFML/Graphics/RenderTextureImpl.cpp index c65f4a7f..b3087eee 100644 --- a/src/SFML/Graphics/RenderTextureImpl.cpp +++ b/src/SFML/Graphics/RenderTextureImpl.cpp @@ -33,10 +33,7 @@ namespace sf namespace priv { //////////////////////////////////////////////////////////// -RenderTextureImpl::~RenderTextureImpl() -{ - // Nothing to do -} +RenderTextureImpl::~RenderTextureImpl() = default; } // namespace priv diff --git a/src/SFML/Graphics/RenderWindow.cpp b/src/SFML/Graphics/RenderWindow.cpp index b6438e64..78f2f5fe 100644 --- a/src/SFML/Graphics/RenderWindow.cpp +++ b/src/SFML/Graphics/RenderWindow.cpp @@ -61,10 +61,7 @@ m_defaultFrameBuffer(0) //////////////////////////////////////////////////////////// -RenderWindow::~RenderWindow() -{ - // Nothing to do -} +RenderWindow::~RenderWindow() = default; //////////////////////////////////////////////////////////// diff --git a/src/SFML/Graphics/Shape.cpp b/src/SFML/Graphics/Shape.cpp index a46dca94..1d9a1c27 100644 --- a/src/SFML/Graphics/Shape.cpp +++ b/src/SFML/Graphics/Shape.cpp @@ -48,9 +48,7 @@ namespace namespace sf { //////////////////////////////////////////////////////////// -Shape::~Shape() -{ -} +Shape::~Shape() = default; //////////////////////////////////////////////////////////// diff --git a/src/SFML/Graphics/Transformable.cpp b/src/SFML/Graphics/Transformable.cpp index 7bac21ed..495f7c9e 100644 --- a/src/SFML/Graphics/Transformable.cpp +++ b/src/SFML/Graphics/Transformable.cpp @@ -46,9 +46,7 @@ m_inverseTransformNeedUpdate(true) //////////////////////////////////////////////////////////// -Transformable::~Transformable() -{ -} +Transformable::~Transformable() = default; //////////////////////////////////////////////////////////// diff --git a/src/SFML/Network/Packet.cpp b/src/SFML/Network/Packet.cpp index 76d7e349..6cfb313a 100644 --- a/src/SFML/Network/Packet.cpp +++ b/src/SFML/Network/Packet.cpp @@ -45,10 +45,7 @@ m_isValid(true) //////////////////////////////////////////////////////////// -Packet::~Packet() -{ - -} +Packet::~Packet() = default; ////////////////////////////////////////////////////////////