Updated the ScopedValue constructor per code review feedback.
Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
This commit is contained in:
@@ -20,11 +20,11 @@ namespace AZ
|
||||
T m_finalValue;
|
||||
|
||||
public:
|
||||
ScopedValue(T* ptr, T initialValue, T finalValue)
|
||||
ScopedValue(T* ptr, T initialValue, T finalValue) :
|
||||
m_ptr(ptr), m_finalValue(finalValue)
|
||||
{
|
||||
m_ptr = ptr;
|
||||
AZ_Assert(m_ptr, "ScopedValue::m_ptr is null");
|
||||
*m_ptr = initialValue;
|
||||
m_finalValue = finalValue;
|
||||
}
|
||||
|
||||
~ScopedValue()
|
||||
|
||||
Reference in New Issue
Block a user