From 6ea07b810c4d9cee80b6f30304bdc098f9071ac3 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Thu, 22 Dec 2022 22:46:46 -0600 Subject: [PATCH] Let compiler implicitly delete copy operations Because this class is implemented with unique pointers, copy semantics are implicitly deleted. This can be verified by the type trait tests which continue to affirm that these types are noncopyable. --- include/SFML/Audio/InputSoundFile.hpp | 12 ------------ include/SFML/Audio/OutputSoundFile.hpp | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/include/SFML/Audio/InputSoundFile.hpp b/include/SFML/Audio/InputSoundFile.hpp index 1090702f2..7cd787d34 100644 --- a/include/SFML/Audio/InputSoundFile.hpp +++ b/include/SFML/Audio/InputSoundFile.hpp @@ -60,18 +60,6 @@ public: //////////////////////////////////////////////////////////// ~InputSoundFile(); - //////////////////////////////////////////////////////////// - /// \brief Deleted copy constructor - /// - //////////////////////////////////////////////////////////// - InputSoundFile(const InputSoundFile&) = delete; - - //////////////////////////////////////////////////////////// - /// \brief Deleted copy assignment - /// - //////////////////////////////////////////////////////////// - InputSoundFile& operator=(const InputSoundFile&) = delete; - //////////////////////////////////////////////////////////// /// \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 6d2fd6e79..f1aaab2dd 100644 --- a/include/SFML/Audio/OutputSoundFile.hpp +++ b/include/SFML/Audio/OutputSoundFile.hpp @@ -59,18 +59,6 @@ public: //////////////////////////////////////////////////////////// ~OutputSoundFile(); - //////////////////////////////////////////////////////////// - /// \brief Deleted copy constructor - /// - //////////////////////////////////////////////////////////// - OutputSoundFile(const OutputSoundFile&) = delete; - - //////////////////////////////////////////////////////////// - /// \brief Deleted copy assignment - /// - //////////////////////////////////////////////////////////// - OutputSoundFile& operator=(const OutputSoundFile&) = delete; - //////////////////////////////////////////////////////////// /// \brief Open the sound file from the disk for writing ///