mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Minor clean-ups.
This commit is contained in:
parent
779e1d483f
commit
ed220632ed
2 changed files with 12 additions and 5 deletions
|
|
@ -886,8 +886,7 @@ void AudioDeviceManager::setDefaultMidiOutput (const String& deviceName)
|
|||
|
||||
{
|
||||
const ScopedLock sl (audioCallbackLock);
|
||||
oldCallbacks = callbacks;
|
||||
callbacks.clear();
|
||||
oldCallbacks.swapWith (callbacks);
|
||||
}
|
||||
|
||||
if (currentAudioDevice != nullptr)
|
||||
|
|
@ -906,7 +905,7 @@ void AudioDeviceManager::setDefaultMidiOutput (const String& deviceName)
|
|||
|
||||
{
|
||||
const ScopedLock sl (audioCallbackLock);
|
||||
callbacks = oldCallbacks;
|
||||
oldCallbacks.swapWith (callbacks);
|
||||
}
|
||||
|
||||
updateXml();
|
||||
|
|
|
|||
|
|
@ -290,7 +290,11 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
/** Scales this rectangle by the given amount, centred around the origin. */
|
||||
/** Returns a rectangle that has been scaled by the given amount, centred around the origin.
|
||||
Note that if the rectangle has int coordinates and it's scaled by a
|
||||
floating-point amount, then the result will be converted back to integer
|
||||
coordinates using getSmallestIntegerContainer().
|
||||
*/
|
||||
template <typename FloatType>
|
||||
Rectangle operator* (FloatType scaleFactor) const noexcept
|
||||
{
|
||||
|
|
@ -299,7 +303,11 @@ public:
|
|||
return r;
|
||||
}
|
||||
|
||||
/** Scales this rectangle by the given amount, centred around the origin. */
|
||||
/** Scales this rectangle by the given amount, centred around the origin.
|
||||
Note that if the rectangle has int coordinates and it's scaled by a
|
||||
floating-point amount, then the result will be converted back to integer
|
||||
coordinates using getSmallestIntegerContainer().
|
||||
*/
|
||||
template <typename FloatType>
|
||||
Rectangle operator*= (FloatType scaleFactor) noexcept
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue