Strong typedef: Use strong typedefs for date, date tick, minutes types

Add delta types
Adjust/add type conversion functions
Add various utility methods on types
Remove the various minute macros
Fix some minute conversion inconsistencies
This commit is contained in:
Jonathan G Rennison
2023-12-19 01:03:18 +00:00
parent 1e7b56e13a
commit 03e0ec8276
80 changed files with 538 additions and 431 deletions

View File

@@ -94,9 +94,9 @@ WChar GetDecimalSeparatorChar();
* @param n Index of the string parameter.
* @param v Value of the string parameter.
*/
static inline void SetDParam(size_t n, uint64 v)
{
_global_string_params.SetParam(n, v);
template <typename T>
static inline void SetDParam(size_t n, T &&v) {
_global_string_params.SetParam(n, std::forward<T>(v));
}
void SetDParamMaxValue(size_t n, uint64 max_value, uint min_count = 0, FontSize size = FS_NORMAL);