Skip to content

Commit 5aaea23

Browse files
committed
fix lint
1 parent 9af1c49 commit 5aaea23

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ruis/widget/proxy/aspect_ratio_proxy.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,17 @@ ruis::vec2 aspect_ratio_proxy::measure(const ruis::vec2& quotum) const
5252
}
5353

5454
if (quotum.x() < 0) {
55-
return ruis::vec2(
55+
return {
5656
quotum.y() * this->params.x_above_y, //
5757
quotum.y()
58-
);
58+
};
5959
}
6060

6161
if (quotum.y() < 0) {
62-
return ruis::vec2(
62+
return {
6363
quotum.x(), //
6464
quotum.x() / this->params.x_above_y
65-
);
65+
};
6666
}
6767

6868
return quotum;

0 commit comments

Comments
 (0)