mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Use = default to define empty destructors #2311
This commit is contained in:
parent
50d86e4755
commit
9c7b7d68c0
@ -59,9 +59,7 @@ public:
|
||||
/// \brief Virtual destructor
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
virtual ~SoundFileReader()
|
||||
{
|
||||
}
|
||||
virtual ~SoundFileReader() = default;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Open a sound file for reading
|
||||
|
@ -47,9 +47,7 @@ public:
|
||||
/// \brief Virtual destructor
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
virtual ~SoundFileWriter()
|
||||
{
|
||||
}
|
||||
virtual ~SoundFileWriter() = default;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Open a sound file for writing
|
||||
|
@ -48,9 +48,7 @@ public:
|
||||
/// \brief Virtual destructor
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
virtual ~Drawable()
|
||||
{
|
||||
}
|
||||
virtual ~Drawable() = default;
|
||||
|
||||
protected:
|
||||
friend class RenderTarget;
|
||||
|
@ -48,9 +48,7 @@ public:
|
||||
/// \brief Virtual destructor
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
virtual ~InputStream()
|
||||
{
|
||||
}
|
||||
virtual ~InputStream() = default;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Read data from the stream
|
||||
|
@ -76,7 +76,6 @@ source_group("drawables" FILES ${DRAWABLES_SRC})
|
||||
|
||||
# render-texture sources
|
||||
set(RENDER_TEXTURE_SRC
|
||||
${SRCROOT}/RenderTextureImpl.cpp
|
||||
${SRCROOT}/RenderTextureImpl.hpp
|
||||
${SRCROOT}/RenderTextureImplFBO.cpp
|
||||
${SRCROOT}/RenderTextureImplFBO.hpp
|
||||
|
@ -1,40 +0,0 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// SFML - Simple and Fast Multimedia Library
|
||||
// Copyright (C) 2007-2022 Laurent Gomila (laurent@sfml-dev.org)
|
||||
//
|
||||
// This software is provided 'as-is', without any express or implied warranty.
|
||||
// In no event will the authors be held liable for any damages arising from the use of this software.
|
||||
//
|
||||
// Permission is granted to anyone to use this software for any purpose,
|
||||
// including commercial applications, and to alter it and redistribute it freely,
|
||||
// subject to the following restrictions:
|
||||
//
|
||||
// 1. The origin of this software must not be misrepresented;
|
||||
// you must not claim that you wrote the original software.
|
||||
// If you use this software in a product, an acknowledgment
|
||||
// in the product documentation would be appreciated but is not required.
|
||||
//
|
||||
// 2. Altered source versions must be plainly marked as such,
|
||||
// and must not be misrepresented as being the original software.
|
||||
//
|
||||
// 3. This notice may not be removed or altered from any source distribution.
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Headers
|
||||
////////////////////////////////////////////////////////////
|
||||
#include <SFML/Graphics/RenderTextureImpl.hpp>
|
||||
|
||||
|
||||
namespace sf
|
||||
{
|
||||
namespace priv
|
||||
{
|
||||
////////////////////////////////////////////////////////////
|
||||
RenderTextureImpl::~RenderTextureImpl() = default;
|
||||
|
||||
} // namespace priv
|
||||
|
||||
} // namespace sf
|
@ -55,7 +55,7 @@ public:
|
||||
/// \brief Destructor
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
virtual ~RenderTextureImpl();
|
||||
virtual ~RenderTextureImpl() = default;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Deleted copy constructor
|
||||
|
@ -72,7 +72,7 @@ public:
|
||||
/// \brief Destructor
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
~WindowImplUIKit();
|
||||
~WindowImplUIKit() = default;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get the OS-specific handle of the window
|
||||
|
@ -86,12 +86,6 @@ WindowImplUIKit::WindowImplUIKit(VideoMode mode, const String& /* title */, unsi
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
WindowImplUIKit::~WindowImplUIKit()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
void WindowImplUIKit::processEvents()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user