* Minor style changes
* Move function definitions
* Split utility.hpp
* Enable include of export-symbol-helper.hpp in tests
This commit is contained in:
Przemek Pawlas
2024-02-22 23:38:49 +01:00
committed by WarmUpTill
parent dcba7c535d
commit 01cf000cbe
22 changed files with 125 additions and 81 deletions

View File

@@ -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();
}