Previously, the CalculatorManager was managed with a unique_ptr that was instantiated in the ViewModel's constructor and was never re-assigned. Objects with long lifetime and larger memory footprint should live in dynamic memory, but the ViewModel itself lives in dynamic memory so that goal is still satisfied by storing the CalculatorManager directly in the class. The change allows the compiler to write a more efficient memory footprint for the same data. - Verified by testing basic app functionality and running unit tests locally. |
||
---|---|---|
.. | ||
build | ||
CalcManager | ||
Calculator | ||
CalculatorUnitTests | ||
CalcViewModel | ||
Calculator.sln | ||
nuget.config | ||
Settings.XamlStyler |