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:
parent
bd2f62cadf
commit
b2e8db097a
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue