1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Tweak to ScopedValueSetter to keep VS2012 happy.

This commit is contained in:
jules 2013-03-22 11:44:40 +00:00
parent bd2f62cadf
commit b2e8db097a

View file

@ -61,7 +61,7 @@ public:
given new value, and will then reset it to its original value when this object is deleted.
*/
ScopedValueSetter (ValueType& valueToSet,
const ValueType& newValue)
ValueType newValue)
: value (valueToSet),
originalValue (valueToSet)
{
@ -72,8 +72,8 @@ public:
given new value, and will then reset it to be valueWhenDeleted when this object is deleted.
*/
ScopedValueSetter (ValueType& valueToSet,
const ValueType& newValue,
const ValueType& valueWhenDeleted)
ValueType newValue,
ValueType valueWhenDeleted)
: value (valueToSet),
originalValue (valueWhenDeleted)
{