Browse Source

Fixed a const access issue in OwnedArray

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
fd855f851e
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      modules/juce_core/containers/juce_OwnedArray.h

+ 9
- 1
modules/juce_core/containers/juce_OwnedArray.h View File

@@ -230,7 +230,15 @@ public:
/** Returns a pointer to the first element in the array.
This method is provided for compatibility with the standard C++ containers.
*/
inline ObjectClass** data() const noexcept
inline ObjectClass** data() noexcept
{
return begin();
}
/** Returns a pointer to the first element in the array.
This method is provided for compatibility with the standard C++ containers.
*/
inline ObjectClass* const* data() const noexcept
{
return begin();
}


Loading…
Cancel
Save