mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
Fixed a const access issue in OwnedArray
This commit is contained in:
parent
b2a4aaa338
commit
fd855f851e
1 changed files with 9 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue