diff --git a/include/hyprutils/math/Box.hpp b/include/hyprutils/math/Box.hpp index 93beffe..32d6769 100644 --- a/include/hyprutils/math/Box.hpp +++ b/include/hyprutils/math/Box.hpp @@ -73,7 +73,6 @@ namespace Hyprutils::Math { * @brief Constructs a CBox with uniform dimensions. * @param d Dimensions to apply uniformly (x, y, width, height). */ - // XD. This comment will be deleted before MR, but it'll be saved in the history. Sometimes it's nice to be an idiot. CBox(const double d) : x(d), y(d) { w = d; h = d; diff --git a/include/hyprutils/math/Misc.hpp b/include/hyprutils/math/Misc.hpp index 9fff632..c7eae51 100644 --- a/include/hyprutils/math/Misc.hpp +++ b/include/hyprutils/math/Misc.hpp @@ -2,7 +2,6 @@ //NOLINTNEXTLINE namespace Hyprutils::Math { - // Welcome nahui enum eTransform : unsigned char { HYPRUTILS_TRANSFORM_NORMAL = 0, HYPRUTILS_TRANSFORM_90 = 1, diff --git a/include/hyprutils/math/Region.hpp b/include/hyprutils/math/Region.hpp index 466f1bf..b61c23a 100644 --- a/include/hyprutils/math/Region.hpp +++ b/include/hyprutils/math/Region.hpp @@ -30,7 +30,7 @@ namespace Hyprutils::Math { return *this; } - // CRegion&& will shit-talkin you about being non-redeclarable and CRegion const&... pixman moment. + // I guess it is correct... CRegion& operator=(CRegion other) { pixman_region32_copy(&m_rRegion, other.pixman()); return *this; diff --git a/src/string/String.cpp b/src/string/String.cpp index f27293f..3018128 100644 --- a/src/string/String.cpp +++ b/src/string/String.cpp @@ -6,12 +6,12 @@ using namespace Hyprutils::String; std::string Hyprutils::String::trim(const std::string& in) { if (in.empty()) return in; - //Wsign-compare + size_t countBefore = 0; while (countBefore < in.length() && std::isspace(in.at(countBefore))) { countBefore++; } - //Wsign-compare + size_t countAfter = 0; while (countAfter < in.length() - countBefore && std::isspace(in.at(in.length() - countAfter - 1))) { countAfter++;