make monitorSize argument a const refrence

This commit is contained in:
Franz Hoeltermann 2025-07-05 15:25:56 +02:00
parent 971c3d749c
commit 39f55ea54d
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ namespace Hyprutils {
Vector2D getComponentMax(const Vector2D& other) const;
Vector2D transform(eTransform transform, Vector2D monitorSize) const;
Vector2D transform(eTransform transform, const Vector2D& monitorSize) const;
};
}
}

View file

@ -57,7 +57,7 @@ Vector2D Hyprutils::Math::Vector2D::getComponentMax(const Vector2D& other) const
return Vector2D(std::max(this->x, other.x), std::max(this->y, other.y));
}
Vector2D Hyprutils::Math::Vector2D::transform(eTransform transform, Vector2D monitorSize) const {
Vector2D Hyprutils::Math::Vector2D::transform(eTransform transform, const Vector2D& monitorSize) const {
switch (transform) {
case HYPRUTILS_TRANSFORM_NORMAL:
return *this;