From 1e65db371b67d4e87e9363cce75d8b9033777509 Mon Sep 17 00:00:00 2001 From: Tom Lankhorst Date: Fri, 1 Feb 2019 21:51:01 +0100 Subject: [PATCH] Use single underscore prefix for template parameters --- src/openrct2/core/Random.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/openrct2/core/Random.hpp b/src/openrct2/core/Random.hpp index 60431abc37..2ba0da05fa 100644 --- a/src/openrct2/core/Random.hpp +++ b/src/openrct2/core/Random.hpp @@ -27,12 +27,12 @@ namespace Random /** * FixedSeedSequence adheres to the _Named Requirement_ `SeedSequence`. */ - template class FixedSeedSequence + template class FixedSeedSequence { public: using result_type = uint32_t; - static constexpr size_t N = __N; + static constexpr size_t N = _N; static constexpr result_type default_seed = 0x1234567F; explicit FixedSeedSequence() @@ -91,8 +91,7 @@ namespace Random * RotateEngine adheres to the _Named Requirement_ `RandomNumberEngine` * https://en.cppreference.com/w/cpp/named_req/RandomNumberEngine */ - template - class RotateEngine : protected RotateEngineState + template class RotateEngine : protected RotateEngineState { static_assert(std::is_unsigned::value, "Type must be unsigned integral."); @@ -103,9 +102,9 @@ namespace Random using result_type = UIntType; using state_type = RotateEngineState; - static constexpr result_type x = __x; - static constexpr size_t r1 = __r1; - static constexpr size_t r2 = __r2; + static constexpr result_type x = _x; + static constexpr size_t r1 = _r1; + static constexpr size_t r2 = _r2; static constexpr result_type default_seed = 1; static constexpr result_type min()