Skip to content

Commit

Permalink
Let compiler generated special member functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Apr 4, 2023
1 parent 8694ff2 commit e5fcb91
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
30 changes: 0 additions & 30 deletions include/SFML/System/String.hpp
Expand Up @@ -151,26 +151,6 @@ class SFML_SYSTEM_API String
////////////////////////////////////////////////////////////
String(const std::u32string& utf32String);

////////////////////////////////////////////////////////////
/// \brief Copy constructor
///
/// \param copy Instance to copy
///
////////////////////////////////////////////////////////////
String(const String& copy);

////////////////////////////////////////////////////////////
/// \brief Move constructor
///
////////////////////////////////////////////////////////////
String(String&&) noexcept;

////////////////////////////////////////////////////////////
/// \brief Move assignment
///
////////////////////////////////////////////////////////////
String& operator=(String&&) noexcept;

////////////////////////////////////////////////////////////
/// \brief Create a new sf::String from a UTF-8 encoded string
///
Expand Down Expand Up @@ -312,16 +292,6 @@ class SFML_SYSTEM_API String
////////////////////////////////////////////////////////////
std::u32string toUtf32() const;

////////////////////////////////////////////////////////////
/// \brief Overload of assignment operator
///
/// \param right Instance to assign
///
/// \return Reference to self
///
////////////////////////////////////////////////////////////
String& operator=(const String& right);

////////////////////////////////////////////////////////////
/// \brief Overload of += operator to append an UTF-32 string
///
Expand Down
16 changes: 0 additions & 16 deletions src/SFML/System/String.cpp
Expand Up @@ -123,18 +123,6 @@ String::String(const std::u32string& utf32String) : m_string(utf32String)
}


////////////////////////////////////////////////////////////
String::String(const String& copy) = default;


////////////////////////////////////////////////////////////
String::String(String&&) noexcept = default;


////////////////////////////////////////////////////////////
String& String::operator=(String&&) noexcept = default;


////////////////////////////////////////////////////////////
String::operator std::string() const
{
Expand Down Expand Up @@ -212,10 +200,6 @@ std::u32string String::toUtf32() const
}


////////////////////////////////////////////////////////////
String& String::operator=(const String& right) = default;


////////////////////////////////////////////////////////////
String& String::operator+=(const String& right)
{
Expand Down

0 comments on commit e5fcb91

Please sign in to comment.