mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
Refactor
* Minor style changes * Move function definitions * Split utility.hpp * Enable include of export-symbol-helper.hpp in tests
This commit is contained in:
committed by
WarmUpTill
parent
dcba7c535d
commit
01cf000cbe
@@ -70,17 +70,19 @@ std::optional<int> Variable::IntValue() const
|
||||
return GetInt(Value());
|
||||
}
|
||||
|
||||
void Variable::SetValue(const std::string &val)
|
||||
void Variable::SetValue(const std::string &value)
|
||||
{
|
||||
_value = val;
|
||||
_lastUsed = std::chrono::high_resolution_clock::now();
|
||||
_value = value;
|
||||
|
||||
UpdateLastUsed();
|
||||
lastVariableChange = std::chrono::high_resolution_clock::now();
|
||||
}
|
||||
|
||||
void Variable::SetValue(double value)
|
||||
{
|
||||
_value = ToString(value);
|
||||
_lastUsed = std::chrono::high_resolution_clock::now();
|
||||
|
||||
UpdateLastUsed();
|
||||
lastVariableChange = std::chrono::high_resolution_clock::now();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user