Browse Source

Minor breaking change: removed the legacy swapVariables function. Just use std::swap instead and it'll do a better job!

tags/2021-05-28
jules 7 years ago
parent
commit
b44cb8b710
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      modules/juce_core/maths/juce_MathsFunctions.h

+ 0
- 3
modules/juce_core/maths/juce_MathsFunctions.h View File

@@ -262,9 +262,6 @@ bool isPositiveAndNotGreaterThan (int valueToTest, Type upperLimit) noexcept
}
//==============================================================================
/** @deprecated Just use std::swap instead! */
JUCE_DEPRECATED_WITH_BODY (template <typename Type> void swapVariables (Type& variable1, Type& variable2), { std::swap (variable1, variable2); })
/** Handy function for avoiding unused variables warning. */
template <typename Type1>
void ignoreUnused (const Type1&) noexcept {}


Loading…
Cancel
Save