diff options
author | Jonathan "Geenz" Goodman <geenz@lindenlab.com> | 2025-06-10 14:15:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-10 14:15:57 -0400 |
commit | a0be1e7dfbe74531becd49613351f9a688c8f908 (patch) | |
tree | 89613775ded314a85434b7642230d29487938933 /indra/llwindow/llopenglview-objc.mm | |
parent | 3c7dde56e55bc36b3befe9fbf23fd1d50fdd68e2 (diff) |
macOS 26 build changes (#4239)
* Fix for VLAs now emitting warnings on Xcode 26, and AGL being removed from the SDK.
Note: there was no warning or notice provided for AGL's removal.
* Whitespace.
Diffstat (limited to 'indra/llwindow/llopenglview-objc.mm')
-rw-r--r-- | indra/llwindow/llopenglview-objc.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/llwindow/llopenglview-objc.mm b/indra/llwindow/llopenglview-objc.mm index 0bd4e506a2..937c3c7a6e 100644 --- a/indra/llwindow/llopenglview-objc.mm +++ b/indra/llwindow/llopenglview-objc.mm @@ -657,7 +657,7 @@ attributedStringInfo getSegments(NSAttributedString *str) }; int string_length = [aString length]; - unichar text[string_length]; + unichar *text = new unichar[string_length]; attributedStringInfo segments; // I used 'respondsToSelector:@selector(string)' // to judge aString is an attributed string or not. @@ -685,6 +685,8 @@ attributedStringInfo getSegments(NSAttributedString *str) // we must clear the marked text when aString is null. [self unmarkText]; } + + delete [] text; } else { if (mHasMarkedText) { |