Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions indra/cmake/Linking.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ else()
find_library(COCOA_LIBRARY Cocoa)
find_library(IOKIT_LIBRARY IOKit)

find_library(AGL_LIBRARY AGL)
find_library(APPKIT_LIBRARY AppKit)
find_library(COREAUDIO_LIBRARY CoreAudio)

Expand All @@ -81,7 +80,6 @@ else()
${IOKIT_LIBRARY}
${COREFOUNDATION_LIBRARY}
${CARBON_LIBRARY}
${AGL_LIBRARY}
${APPKIT_LIBRARY}
${COREAUDIO_LIBRARY}
)
Expand Down
2 changes: 1 addition & 1 deletion indra/llplugin/llpluginprocessparent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ void LLPluginProcessParent::idle(void)
params.args.add("-e");
params.args.add("tell application \"Terminal\"");
params.args.add("-e");
params.args.add(STRINGIZE("set win to do script \"lldb -pid "
params.args.add(STRINGIZE("set win to do script \"lldb -p "
<< mProcess->getProcessID() << "\""));
params.args.add("-e");
params.args.add("do script \"continue\" in win");
Expand Down
4 changes: 3 additions & 1 deletion indra/llwindow/llopenglview-objc.mm
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ - (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replaceme
};

int string_length = [aString length];
unichar text[string_length];
unichar *text = new unichar[string_length];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would slightly prefer using a vector and calling .data() where we pass it to APIs expecting a char* but no biggie

attributedStringInfo segments;
// I used 'respondsToSelector:@selector(string)'
// to judge aString is an attributed string or not.
Expand Down Expand Up @@ -685,6 +685,8 @@ - (void)setMarkedText:(id)aString selectedRange:(NSRange)selectedRange replaceme
// we must clear the marked text when aString is null.
[self unmarkText];
}

delete [] text;
} else {
if (mHasMarkedText)
{
Expand Down
5 changes: 4 additions & 1 deletion indra/newview/llfloateruipreview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,9 @@ void LLFloaterUIPreview::getExecutablePath(const std::vector<std::string>& filen
{
CFStringRef executable_cfstr = (CFStringRef)CFDictionaryGetValue(bundleInfoDict, CFSTR("CFBundleExecutable")); // get the name of the actual executable (e.g. TextEdit or firefox-bin)
int max_file_length = 256; // (max file name length is 255 in OSX)
char executable_buf[max_file_length];

// Xcode 26: VLAs are a clang extension. Just create the buffer and delete it after.
char *executable_buf = new char [max_file_length];
if(CFStringGetCString(executable_cfstr, executable_buf, max_file_length, kCFStringEncodingMacRoman)) // convert CFStringRef to char*
{
executable_path += std::string("/Contents/MacOS/") + std::string(executable_buf); // append path to executable directory and then executable name to exec path
Expand All @@ -1052,6 +1054,7 @@ void LLFloaterUIPreview::getExecutablePath(const std::vector<std::string>& filen
std::string warning = "Unable to get CString from CFString for executable path";
popupAndPrintWarning(warning);
}
delete [] executable_buf;
}
else
{
Expand Down