mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Replaced all uses of static_cast<Type&&> with std::move
This commit is contained in:
parent
c723e56952
commit
eaf0f990d4
59 changed files with 159 additions and 159 deletions
|
|
@ -123,7 +123,7 @@ Value::Value (Value&& other) noexcept
|
|||
jassert (other.listeners.size() == 0);
|
||||
|
||||
other.removeFromListenerList();
|
||||
value = static_cast<ReferenceCountedObjectPtr<ValueSource>&&> (other.value);
|
||||
value = std::move (other.value);
|
||||
}
|
||||
|
||||
Value& Value::operator= (Value&& other) noexcept
|
||||
|
|
@ -133,7 +133,7 @@ Value& Value::operator= (Value&& other) noexcept
|
|||
jassert (other.listeners.size() == 0);
|
||||
|
||||
other.removeFromListenerList();
|
||||
value = static_cast<ReferenceCountedObjectPtr<ValueSource>&&> (other.value);
|
||||
value = std::move (other.value);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue