diff options
| -rw-r--r-- | indra/cmake/Linking.cmake | 2 | ||||
| -rw-r--r-- | indra/llinventory/llsettingsbase.cpp | 6 | ||||
| -rw-r--r-- | indra/llinventory/llsettingssky.cpp | 6 | ||||
| -rw-r--r-- | indra/llplugin/llpluginprocessparent.cpp | 2 | ||||
| -rw-r--r-- | indra/llwindow/llopenglview-objc.mm | 4 | ||||
| -rw-r--r-- | indra/newview/llfloateruipreview.cpp | 5 | 
6 files changed, 13 insertions, 12 deletions
| diff --git a/indra/cmake/Linking.cmake b/indra/cmake/Linking.cmake index 1093fc7f71..8451659c34 100644 --- a/indra/cmake/Linking.cmake +++ b/indra/cmake/Linking.cmake @@ -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) @@ -81,7 +80,6 @@ else()            ${IOKIT_LIBRARY}            ${COREFOUNDATION_LIBRARY}            ${CARBON_LIBRARY} -          ${AGL_LIBRARY}            ${APPKIT_LIBRARY}            ${COREAUDIO_LIBRARY}            ) diff --git a/indra/llinventory/llsettingsbase.cpp b/indra/llinventory/llsettingsbase.cpp index d483b33288..d7a94d61a5 100644 --- a/indra/llinventory/llsettingsbase.cpp +++ b/indra/llinventory/llsettingsbase.cpp @@ -361,14 +361,12 @@ LLSD LLSettingsBase::interpolateSDValue(const std::string& key_name, const LLSD                  new_array = q.getValue();              }              else -            {   // TODO: We could expand this to inspect the type and do a deep lerp based on type. -                // for now assume a heterogeneous array of reals. +            {                  size_t len = std::max(value.size(), other_value.size());                  for (size_t i = 0; i < len; ++i)                  { - -                    new_array[i] = lerp((F32)value[i].asReal(), (F32)other_value[i].asReal(), (F32)mix); +                    new_array[i] = interpolateSDValue(key_name, value[i], other_value[i], defaults, mix, skip, slerps);                  }              } diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp index 06e4c20d6f..4957cf3c02 100644 --- a/indra/llinventory/llsettingssky.cpp +++ b/indra/llinventory/llsettingssky.cpp @@ -664,9 +664,9 @@ void LLSettingsSky::blend(LLSettingsBase::ptr_t &end, F64 blendf)          parammapping_t defaults = other->getParameterMap();          stringset_t skip = getSkipInterpolateKeys();          stringset_t slerps = getSlerpKeys(); -        mAbsorptionConfigs = interpolateSDMap(mAbsorptionConfigs, other->mAbsorptionConfigs, defaults, blendf, skip, slerps); -        mMieConfigs = interpolateSDMap(mMieConfigs, other->mMieConfigs, defaults, blendf, skip, slerps); -        mRayleighConfigs = interpolateSDMap(mRayleighConfigs, other->mRayleighConfigs, defaults, blendf, skip, slerps); +        mAbsorptionConfigs = interpolateSDValue("absorption_config", mAbsorptionConfigs, other->mAbsorptionConfigs, defaults, blendf, skip, slerps); +        mMieConfigs = interpolateSDValue("mie_config", mMieConfigs, other->mMieConfigs, defaults, blendf, skip, slerps); +        mRayleighConfigs = interpolateSDValue("rayleigh_config", mRayleighConfigs, other->mRayleighConfigs, defaults, blendf, skip, slerps);          setDirtyFlag(true);          setReplaced(); diff --git a/indra/llplugin/llpluginprocessparent.cpp b/indra/llplugin/llpluginprocessparent.cpp index 19a0ce639a..afee099697 100644 --- a/indra/llplugin/llpluginprocessparent.cpp +++ b/indra/llplugin/llpluginprocessparent.cpp @@ -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"); 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)          { diff --git a/indra/newview/llfloateruipreview.cpp b/indra/newview/llfloateruipreview.cpp index 990a299c50..c3bc24c6b9 100644 --- a/indra/newview/llfloateruipreview.cpp +++ b/indra/newview/llfloateruipreview.cpp @@ -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 @@ -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          { | 
