mirror of
https://github.com/SFML/SFML.git
synced 2025-02-18 06:18:01 +08:00
Implicitly define default constructors
This commit is contained in:
parent
27acbab3d9
commit
fca84e4011
@ -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
|
||||||
///
|
///
|
||||||
|
@ -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
|
||||||
///
|
///
|
||||||
|
@ -218,10 +218,6 @@ bool SoundFileReaderFlac::check(InputStream& stream)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
SoundFileReaderFlac::SoundFileReaderFlac() = default;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
SoundFileReaderFlac::~SoundFileReaderFlac()
|
SoundFileReaderFlac::~SoundFileReaderFlac()
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
///
|
///
|
||||||
|
@ -87,13 +87,6 @@ bool SoundFileReaderOgg::check(InputStream& stream)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
SoundFileReaderOgg::SoundFileReaderOgg()
|
|
||||||
{
|
|
||||||
m_vorbis.datasource = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
SoundFileReaderOgg::~SoundFileReaderOgg()
|
SoundFileReaderOgg::~SoundFileReaderOgg()
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
///
|
///
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
///
|
///
|
||||||
|
@ -46,10 +46,6 @@ bool SoundFileWriterFlac::check(const std::filesystem::path& filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
SoundFileWriterFlac::SoundFileWriterFlac() = default;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
SoundFileWriterFlac::~SoundFileWriterFlac()
|
SoundFileWriterFlac::~SoundFileWriterFlac()
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
///
|
///
|
||||||
|
@ -47,10 +47,6 @@ bool SoundFileWriterOgg::check(const std::filesystem::path& filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
SoundFileWriterOgg::SoundFileWriterOgg() = default;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
SoundFileWriterOgg::~SoundFileWriterOgg()
|
SoundFileWriterOgg::~SoundFileWriterOgg()
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
///
|
///
|
||||||
|
@ -74,10 +74,6 @@ bool SoundFileWriterWav::check(const std::filesystem::path& filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
SoundFileWriterWav::SoundFileWriterWav() = default;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
SoundFileWriterWav::~SoundFileWriterWav()
|
SoundFileWriterWav::~SoundFileWriterWav()
|
||||||
{
|
{
|
||||||
|
@ -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
|
||||||
///
|
///
|
||||||
|
@ -193,10 +193,6 @@ FloatRect Shape::getGlobalBounds() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
|
||||||
Shape::Shape() = default;
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
void Shape::update()
|
void Shape::update()
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user