diff --git a/src/SFML/Graphics/RenderTarget.cpp b/src/SFML/Graphics/RenderTarget.cpp index 8503f19af..f2a6bc35c 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 c65f4a7f0..b3087eee2 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 b6438e645..78f2f5feb 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 a46dca94e..1d9a1c277 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 7bac21ed1..495f7c9e0 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 76d7e3492..6cfb313a2 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; ////////////////////////////////////////////////////////////