1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:18:12 +00:00

AK: Add ScopedValueRollback::set_override_rollback_value().

This can be used if you change your mind about what value we should roll
back to. :^)
This commit is contained in:
Andreas Kling 2019-07-25 15:21:16 +02:00
parent 65c3101897
commit 6ae95945aa

View file

@ -16,6 +16,11 @@ public:
m_variable = m_saved_value;
}
void set_override_rollback_value(const T& value)
{
m_saved_value = value;
}
private:
T& m_variable;
T m_saved_value;