mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 22:13:07 +01:00
Mark functions as static
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Numerics
|
||||
* @param shift positions to shift
|
||||
* @return rotated value
|
||||
*/
|
||||
template<typename _UIntType> constexpr _UIntType rol(_UIntType x, size_t shift)
|
||||
template<typename _UIntType> static constexpr _UIntType rol(_UIntType x, size_t shift)
|
||||
{
|
||||
static_assert(std::is_unsigned<_UIntType>::value, "result_type must be an unsigned integral type");
|
||||
using limits = typename std::numeric_limits<_UIntType>;
|
||||
@@ -37,7 +37,7 @@ namespace Numerics
|
||||
* @param shift positions to shift
|
||||
* @return rotated value
|
||||
*/
|
||||
template<typename _UIntType> constexpr _UIntType ror(_UIntType x, size_t shift)
|
||||
template<typename _UIntType> static constexpr _UIntType ror(_UIntType x, size_t shift)
|
||||
{
|
||||
static_assert(std::is_unsigned<_UIntType>::value, "result_type must be an unsigned integral type");
|
||||
using limits = std::numeric_limits<_UIntType>;
|
||||
|
||||
@@ -164,7 +164,7 @@ typedef uint8_t Direction;
|
||||
* Given a direction, return the direction that points the other way,
|
||||
* on the same axis.
|
||||
*/
|
||||
constexpr Direction direction_reverse(Direction dir)
|
||||
[[maybe_unused]] static constexpr Direction direction_reverse(Direction dir)
|
||||
{
|
||||
return dir ^ 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user