Implicitly define default constructors

This commit is contained in:
Chris Thrasher 2023-05-07 21:58:41 -06:00
parent 27acbab3d9
commit fca84e4011
16 changed files with 0 additions and 83 deletions

View File

@ -256,12 +256,6 @@ public:
FloatRect getGlobalBounds() const; FloatRect getGlobalBounds() const;
protected: protected:
////////////////////////////////////////////////////////////
/// \brief Default constructor
///
////////////////////////////////////////////////////////////
Shape();
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Recompute the internal geometry of the shape /// \brief Recompute the internal geometry of the shape
/// ///

View File

@ -46,12 +46,6 @@ namespace sf
class SFML_SYSTEM_API MemoryInputStream : public InputStream class SFML_SYSTEM_API MemoryInputStream : public InputStream
{ {
public: public:
////////////////////////////////////////////////////////////
/// \brief Default constructor
///
////////////////////////////////////////////////////////////
MemoryInputStream();
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Open the stream from its data /// \brief Open the stream from its data
/// ///

View File

@ -218,10 +218,6 @@ bool SoundFileReaderFlac::check(InputStream& stream)
} }
////////////////////////////////////////////////////////////
SoundFileReaderFlac::SoundFileReaderFlac() = default;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
SoundFileReaderFlac::~SoundFileReaderFlac() SoundFileReaderFlac::~SoundFileReaderFlac()
{ {

View File

@ -52,12 +52,6 @@ public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
[[nodiscard]] static bool check(InputStream& stream); [[nodiscard]] static bool check(InputStream& stream);
////////////////////////////////////////////////////////////
/// \brief Default constructor
///
////////////////////////////////////////////////////////////
SoundFileReaderFlac();
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Default constructor /// \brief Default constructor
/// ///

View File

@ -87,13 +87,6 @@ bool SoundFileReaderOgg::check(InputStream& stream)
} }
////////////////////////////////////////////////////////////
SoundFileReaderOgg::SoundFileReaderOgg()
{
m_vorbis.datasource = nullptr;
}
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
SoundFileReaderOgg::~SoundFileReaderOgg() SoundFileReaderOgg::~SoundFileReaderOgg()
{ {

View File

@ -51,12 +51,6 @@ public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
[[nodiscard]] static bool check(InputStream& stream); [[nodiscard]] static bool check(InputStream& stream);
////////////////////////////////////////////////////////////
/// \brief Default constructor
///
////////////////////////////////////////////////////////////
SoundFileReaderOgg();
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destructor /// \brief Destructor
/// ///

View File

@ -119,10 +119,6 @@ bool SoundFileReaderWav::check(InputStream& stream)
} }
////////////////////////////////////////////////////////////
SoundFileReaderWav::SoundFileReaderWav() = default;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
bool SoundFileReaderWav::open(InputStream& stream, Info& info) bool SoundFileReaderWav::open(InputStream& stream, Info& info)
{ {

View File

@ -49,12 +49,6 @@ public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
[[nodiscard]] static bool check(InputStream& stream); [[nodiscard]] static bool check(InputStream& stream);
////////////////////////////////////////////////////////////
/// \brief Default constructor
///
////////////////////////////////////////////////////////////
SoundFileReaderWav();
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Open a sound file for reading /// \brief Open a sound file for reading
/// ///

View File

@ -46,10 +46,6 @@ bool SoundFileWriterFlac::check(const std::filesystem::path& filename)
} }
////////////////////////////////////////////////////////////
SoundFileWriterFlac::SoundFileWriterFlac() = default;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
SoundFileWriterFlac::~SoundFileWriterFlac() SoundFileWriterFlac::~SoundFileWriterFlac()
{ {

View File

@ -53,12 +53,6 @@ public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
[[nodiscard]] static bool check(const std::filesystem::path& filename); [[nodiscard]] static bool check(const std::filesystem::path& filename);
////////////////////////////////////////////////////////////
/// \brief Default constructor
///
////////////////////////////////////////////////////////////
SoundFileWriterFlac();
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destructor /// \brief Destructor
/// ///

View File

@ -47,10 +47,6 @@ bool SoundFileWriterOgg::check(const std::filesystem::path& filename)
} }
////////////////////////////////////////////////////////////
SoundFileWriterOgg::SoundFileWriterOgg() = default;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
SoundFileWriterOgg::~SoundFileWriterOgg() SoundFileWriterOgg::~SoundFileWriterOgg()
{ {

View File

@ -54,12 +54,6 @@ public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
[[nodiscard]] static bool check(const std::filesystem::path& filename); [[nodiscard]] static bool check(const std::filesystem::path& filename);
////////////////////////////////////////////////////////////
/// \brief Default constructor
///
////////////////////////////////////////////////////////////
SoundFileWriterOgg();
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destructor /// \brief Destructor
/// ///

View File

@ -74,10 +74,6 @@ bool SoundFileWriterWav::check(const std::filesystem::path& filename)
} }
////////////////////////////////////////////////////////////
SoundFileWriterWav::SoundFileWriterWav() = default;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
SoundFileWriterWav::~SoundFileWriterWav() SoundFileWriterWav::~SoundFileWriterWav()
{ {

View File

@ -52,12 +52,6 @@ public:
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
[[nodiscard]] static bool check(const std::filesystem::path& filename); [[nodiscard]] static bool check(const std::filesystem::path& filename);
////////////////////////////////////////////////////////////
/// \brief Default constructor
///
////////////////////////////////////////////////////////////
SoundFileWriterWav();
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
/// \brief Destructor /// \brief Destructor
/// ///

View File

@ -193,10 +193,6 @@ FloatRect Shape::getGlobalBounds() const
} }
////////////////////////////////////////////////////////////
Shape::Shape() = default;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void Shape::update() void Shape::update()
{ {

View File

@ -32,10 +32,6 @@
namespace sf namespace sf
{ {
////////////////////////////////////////////////////////////
MemoryInputStream::MemoryInputStream() = default;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void MemoryInputStream::open(const void* data, std::size_t sizeInBytes) void MemoryInputStream::open(const void* data, std::size_t sizeInBytes)
{ {