Apply changes

Putting the `= default` in the header file like other files do and not in the `.inl` implementation files for consistency
This commit is contained in:
ZXShady 2024-07-18 20:35:37 +00:00 committed by Chris Thrasher
parent 9d418b033f
commit 6c415471d2
14 changed files with 7 additions and 39 deletions

View File

@ -48,7 +48,7 @@ public:
/// sf::Color(0, 0, 0, 255).
///
////////////////////////////////////////////////////////////
constexpr Color();
constexpr Color() = default;
////////////////////////////////////////////////////////////
/// \brief Construct the color from its 4 RGBA components

View File

@ -30,10 +30,6 @@
namespace sf
{
////////////////////////////////////////////////////////////
constexpr Color::Color() = default;
////////////////////////////////////////////////////////////
constexpr Color::Color(std::uint8_t red, std::uint8_t green, std::uint8_t blue, std::uint8_t alpha) :
r(red),

View File

@ -49,7 +49,7 @@ public:
/// Rect({0, 0}, {0, 0})).
///
////////////////////////////////////////////////////////////
constexpr Rect();
constexpr Rect() = default;
////////////////////////////////////////////////////////////
/// \brief Construct the rectangle from position and size

View File

@ -30,11 +30,6 @@
namespace sf
{
////////////////////////////////////////////////////////////
template <typename T>
constexpr Rect<T>::Rect() = default;
////////////////////////////////////////////////////////////
template <typename T>
constexpr Rect<T>::Rect(const Vector2<T>& thePosition, const Vector2<T>& theSize) : position(thePosition), size(theSize)

View File

@ -53,7 +53,7 @@ public:
/// Creates an identity transform (a transform that does nothing).
///
////////////////////////////////////////////////////////////
constexpr Transform();
constexpr Transform() = default;
////////////////////////////////////////////////////////////
/// \brief Construct a transform from a 3x3 matrix

View File

@ -34,10 +34,6 @@
namespace sf
{
////////////////////////////////////////////////////////////
constexpr Transform::Transform() = default;
////////////////////////////////////////////////////////////
// clang-format off
constexpr Transform::Transform(float a00, float a01, float a02,

View File

@ -45,7 +45,7 @@ public:
/// Sets the angle value to zero.
///
////////////////////////////////////////////////////////////
constexpr Angle();
constexpr Angle() = default;
////////////////////////////////////////////////////////////
/// \brief Return the angle's value in degrees

View File

@ -45,11 +45,6 @@ constexpr float positiveRemainder(float a, float b)
}
} // namespace priv
////////////////////////////////////////////////////////////
constexpr Angle::Angle() = default;
////////////////////////////////////////////////////////////
constexpr float Angle::asDegrees() const
{

View File

@ -49,7 +49,7 @@ public:
/// Sets the time value to zero.
///
////////////////////////////////////////////////////////////
constexpr Time();
constexpr Time() = default;
////////////////////////////////////////////////////////////
/// \brief Construct from std::chrono::duration

View File

@ -34,10 +34,6 @@
namespace sf
{
////////////////////////////////////////////////////////////
constexpr Time::Time() = default;
////////////////////////////////////////////////////////////
template <typename Rep, typename Period>
constexpr Time::Time(const std::chrono::duration<Rep, Period>& duration) : m_microseconds(duration)

View File

@ -46,7 +46,7 @@ public:
/// Creates a Vector2(0, 0).
///
////////////////////////////////////////////////////////////
constexpr Vector2();
constexpr Vector2() = default;
////////////////////////////////////////////////////////////
/// \brief Construct the vector from cartesian coordinates

View File

@ -32,11 +32,6 @@
namespace sf
{
////////////////////////////////////////////////////////////
template <typename T>
constexpr Vector2<T>::Vector2() = default;
////////////////////////////////////////////////////////////
#if defined(__GNUC__)
#pragma GCC diagnostic push

View File

@ -44,7 +44,7 @@ public:
/// Creates a Vector3(0, 0, 0).
///
////////////////////////////////////////////////////////////
constexpr Vector3();
constexpr Vector3() = default;
////////////////////////////////////////////////////////////
/// \brief Construct the vector from its coordinates

View File

@ -32,11 +32,6 @@
namespace sf
{
////////////////////////////////////////////////////////////
template <typename T>
constexpr Vector3<T>::Vector3() = default;
////////////////////////////////////////////////////////////
#if defined(__GNUC__)
#pragma GCC diagnostic push