mirror of
https://github.com/hyprwm/hyprutils.git
synced 2026-05-05 05:48:05 +02:00
make monitorSize argument a const refrence
This commit is contained in:
parent
971c3d749c
commit
39f55ea54d
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue