Skip to content

Commit 4b5cac1

Browse files
committed
edit struct Range
- Remove clmap(). - Make is_valid() cosnt
1 parent 8405e42 commit 4b5cac1

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

w-image-viewer/range.h

+1-7
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ struct Range
1818
return lower <= static_cast<T>(val) && static_cast<T>(val) <= upper;
1919
}
2020

21-
constexpr void clamp() noexcept
22-
{
23-
if (lower > upper)
24-
lower = upper;
25-
}
26-
27-
constexpr bool is_valid() noexcept
21+
constexpr bool is_valid() const noexcept
2822
{
2923
if (lower <= upper)
3024
return true;

0 commit comments

Comments
 (0)