From 0a1090c89dda050bbc6c4f1dc8cb46b2b8dba679 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sun, 26 Nov 2023 16:43:13 -0700 Subject: [PATCH] Let compiler define default constructors --- include/SFML/Audio/InputSoundFile.hpp | 6 ------ include/SFML/Audio/OutputSoundFile.hpp | 6 ------ src/SFML/Audio/InputSoundFile.cpp | 4 ---- src/SFML/Audio/OutputSoundFile.cpp | 4 ---- 4 files changed, 20 deletions(-) diff --git a/include/SFML/Audio/InputSoundFile.hpp b/include/SFML/Audio/InputSoundFile.hpp index 9138fbc43..f72e44daf 100644 --- a/include/SFML/Audio/InputSoundFile.hpp +++ b/include/SFML/Audio/InputSoundFile.hpp @@ -49,12 +49,6 @@ class InputStream; class SFML_AUDIO_API InputSoundFile { public: - //////////////////////////////////////////////////////////// - /// \brief Default constructor - /// - //////////////////////////////////////////////////////////// - InputSoundFile(); - //////////////////////////////////////////////////////////// /// \brief Open a sound file from the disk for reading /// diff --git a/include/SFML/Audio/OutputSoundFile.hpp b/include/SFML/Audio/OutputSoundFile.hpp index 26447137a..d6e87948d 100644 --- a/include/SFML/Audio/OutputSoundFile.hpp +++ b/include/SFML/Audio/OutputSoundFile.hpp @@ -44,12 +44,6 @@ namespace sf class SFML_AUDIO_API OutputSoundFile { public: - //////////////////////////////////////////////////////////// - /// \brief Default constructor - /// - //////////////////////////////////////////////////////////// - OutputSoundFile(); - //////////////////////////////////////////////////////////// /// \brief Open the sound file from the disk for writing /// diff --git a/src/SFML/Audio/InputSoundFile.cpp b/src/SFML/Audio/InputSoundFile.cpp index 46eb3b05e..f639d4f0e 100644 --- a/src/SFML/Audio/InputSoundFile.cpp +++ b/src/SFML/Audio/InputSoundFile.cpp @@ -62,10 +62,6 @@ void InputSoundFile::StreamDeleter::operator()(InputStream* ptr) const } -//////////////////////////////////////////////////////////// -InputSoundFile::InputSoundFile() = default; - - //////////////////////////////////////////////////////////// bool InputSoundFile::openFromFile(const std::filesystem::path& filename) { diff --git a/src/SFML/Audio/OutputSoundFile.cpp b/src/SFML/Audio/OutputSoundFile.cpp index 337f7383e..0c8ed899c 100644 --- a/src/SFML/Audio/OutputSoundFile.cpp +++ b/src/SFML/Audio/OutputSoundFile.cpp @@ -32,10 +32,6 @@ namespace sf { -//////////////////////////////////////////////////////////// -OutputSoundFile::OutputSoundFile() = default; - - //////////////////////////////////////////////////////////// bool OutputSoundFile::openFromFile(const std::filesystem::path& filename, unsigned int sampleRate, unsigned int channelCount) {