This commit is contained in:
Honkazel 2025-02-02 19:02:08 +05:00
parent 0ccb43f5cd
commit 65c8b4f132
4 changed files with 3 additions and 5 deletions

View file

@ -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;

View file

@ -2,7 +2,6 @@
//NOLINTNEXTLINE
namespace Hyprutils::Math {
// Welcome nahui
enum eTransform : unsigned char {
HYPRUTILS_TRANSFORM_NORMAL = 0,
HYPRUTILS_TRANSFORM_90 = 1,

View file

@ -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;

View file

@ -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++;