Codechange: move currency settings to std::string
This commit is contained in:
@@ -9,9 +9,9 @@ static const SettingDesc _currency_settings[] = {
|
||||
[post-amble]
|
||||
};
|
||||
[templates]
|
||||
SDT_VAR = SDT_VAR($base, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
|
||||
SDT_STR = SDT_STR($base, $var, $type, $flags, $guiflags, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
|
||||
SDT_END = SDT_END()
|
||||
SDT_VAR = SDT_VAR ($base, $var, $type, $flags, $guiflags, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
|
||||
SDT_SSTR = SDT_SSTR($base, $var, $type, $flags, $guiflags, $def, $str, $strhelp, $strval, $proc, $from, $to, $cat, $extra, $startup),
|
||||
SDT_END = SDT_END()
|
||||
|
||||
[validation]
|
||||
SDT_VAR = static_assert($max <= MAX_$type, "Maximum value for $base.$var exceeds storage size");
|
||||
@@ -41,10 +41,10 @@ def = 1
|
||||
min = 0
|
||||
max = UINT16_MAX
|
||||
|
||||
[SDT_STR]
|
||||
[SDT_SSTR]
|
||||
base = CurrencySpec
|
||||
var = separator
|
||||
type = SLE_STRBQ
|
||||
type = SLE_STRQ
|
||||
def = "".""
|
||||
cat = SC_BASIC
|
||||
|
||||
@@ -56,16 +56,16 @@ def = 0
|
||||
min = MIN_YEAR
|
||||
max = MAX_YEAR
|
||||
|
||||
[SDT_STR]
|
||||
[SDT_SSTR]
|
||||
base = CurrencySpec
|
||||
var = prefix
|
||||
type = SLE_STRBQ
|
||||
type = SLE_STRQ
|
||||
def = nullptr
|
||||
|
||||
[SDT_STR]
|
||||
[SDT_SSTR]
|
||||
base = CurrencySpec
|
||||
var = suffix
|
||||
type = SLE_STRBQ
|
||||
type = SLE_STRQ
|
||||
def = "" credits""
|
||||
|
||||
[SDT_END]
|
||||
|
Reference in New Issue
Block a user