diff options
author | couriersud <couriersud@gmx.org> | 2020-01-25 21:13:21 +0100 |
---|---|---|
committer | couriersud <couriersud@gmx.org> | 2020-01-25 21:13:21 +0100 |
commit | 6874b1f7ac8e5d91503a5b47fe95f86e491d5914 (patch) | |
tree | 21fc875d7f9574f1213a9be264498bf11a36b031 /src/lib/netlist/nltypes.h | |
parent | 9431ee68e78aa0fe5164bfa7466f35ebd02f560d (diff) |
netlist: clang lint readability fixes. (nw)
Diffstat (limited to 'src/lib/netlist/nltypes.h')
-rw-r--r-- | src/lib/netlist/nltypes.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/nltypes.h b/src/lib/netlist/nltypes.h index ab106f9f59a..3794c160a57 100644 --- a/src/lib/netlist/nltypes.h +++ b/src/lib/netlist/nltypes.h @@ -107,15 +107,15 @@ namespace netlist using netlist_time = plib::ptime<std::int64_t, NETLIST_INTERNAL_RES>; using netlist_time_ext = netlist_time; #endif - static_assert(noexcept(netlist_time::from_nsec(1)) == true, "Not evaluated as constexpr"); + static_assert(noexcept(netlist_time::from_nsec(1)), "Not evaluated as constexpr"); //============================================================ // MACROS //============================================================ - template <typename T> inline constexpr const netlist_time NLTIME_FROM_NS(T &&t) noexcept { return netlist_time::from_nsec(t); } - template <typename T> inline constexpr const netlist_time NLTIME_FROM_US(T &&t) noexcept { return netlist_time::from_usec(t); } - template <typename T> inline constexpr const netlist_time NLTIME_FROM_MS(T &&t) noexcept { return netlist_time::from_msec(t); } + template <typename T> inline constexpr netlist_time NLTIME_FROM_NS(T &&t) noexcept { return netlist_time::from_nsec(t); } + template <typename T> inline constexpr netlist_time NLTIME_FROM_US(T &&t) noexcept { return netlist_time::from_usec(t); } + template <typename T> inline constexpr netlist_time NLTIME_FROM_MS(T &&t) noexcept { return netlist_time::from_msec(t); } } // namespace netlist |