Browse Source

Added method StringArray::swapWith().

tags/2021-05-28
jules 13 years ago
parent
commit
56a4537088
2 changed files with 8 additions and 0 deletions
  1. +5
    -0
      modules/juce_core/text/juce_StringArray.cpp
  2. +3
    -0
      modules/juce_core/text/juce_StringArray.h

+ 5
- 0
modules/juce_core/text/juce_StringArray.cpp View File

@@ -118,6 +118,11 @@ bool StringArray::operator!= (const StringArray& other) const noexcept
return ! operator== (other);
}
void StringArray::swapWith (StringArray& other) noexcept
{
strings.swapWithArray (other.strings);
}
void StringArray::clear()
{
strings.clear();


+ 3
- 0
modules/juce_core/text/juce_StringArray.h View File

@@ -90,6 +90,9 @@ public:
StringArray& operator= (StringArray&& other) noexcept;
#endif
/** Swaps the contents of this and another StringArray. */
void swapWith (StringArray& other) noexcept;
//==============================================================================
/** Compares two arrays.
Comparisons are case-sensitive.


Loading…
Cancel
Save