mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 14:49:19 +02:00
reformat: parameters can be made const
This commit is contained in:
@@ -44,14 +44,14 @@ void global_settings::LoadIniFile(std::string asFileName)
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
static void ParseOne(cParser& parser, T& out, int tokenCount = 1, bool convert = false)
|
||||
static void ParseOne(cParser& parser, T& out, const int tokenCount = 1, const bool convert = false)
|
||||
{
|
||||
parser.getTokens(tokenCount, convert);
|
||||
parser >> out;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
static void ParseOneClamped(cParser& parser, T& out, T minValue, T maxValue, int tokenCount = 1, bool convert = false)
|
||||
static void ParseOneClamped(cParser& parser, T& out, T minValue, T maxValue, const int tokenCount = 1, const bool convert = false)
|
||||
{
|
||||
parser.getTokens(tokenCount, convert);
|
||||
parser >> out;
|
||||
|
||||
Reference in New Issue
Block a user