diff options
Diffstat (limited to 'indra/newview')
41 files changed, 154 insertions, 51 deletions
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index dbd1f1b4ac..226f9a3bda 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -9,20 +9,28 @@ include(Linking)  include(Boost)  include(bugsplat) +if (USE_AUTOBUILD_3P OR USE_CONAN)  include(BuildPackagesInfo) +endif ()  include(BuildVersion)  include(CMakeCopyIfDifferent) +if (USE_AUTOBUILD_3P OR USE_CONAN)  include(CubemapToEquirectangularJS)  include(DBusGlib) +endif ()  include(DragDrop)  include(EXPAT)  include(FMODSTUDIO)  include(Hunspell) +if (USE_AUTOBUILD_3P OR USE_CONAN)  include(JPEGEncoderBasic) +endif ()  include(JsonCpp)  include(LLAppearance)  include(LLAudio) +if (USE_AUTOBUILD_3P OR USE_CONAN)  include(LLCA) +endif ()  include(LLCommon)  include(LLCoreHttp)  include(LLImage) @@ -37,17 +45,23 @@ include(OpenGL)  include(OpenSSL)  include(PNG)  include(TemplateCheck) +if (USE_AUTOBUILD_3P OR USE_CONAN)  include(ThreeJS) +endif ()  include(Tracy)  include(UI)  include(ViewerMiscLibs) +if (USE_AUTOBUILD_3P OR USE_CONAN)  include(ViewerManager) +endif ()  include(VisualLeakDetector)  include(ZLIBNG)  include(URIPARSER)  include(LLPrimitive) +include(LibVLCPlugin) +include(UnixInstall) -if (NOT HAVOK_TPV) +if ((USE_AUTOBUILD_3P OR USE_CONAN) AND NOT HAVOK_TPV)     # When using HAVOK_TPV, the library is precompiled, so no need for this     # Stub and probably havok lib itself is a hack, autobuild loads a 3p that really is a source tarball @@ -68,7 +82,7 @@ if (NOT HAVOK_TPV)          target_compile_options( llphysicsextensions  PRIVATE -Wno-unused-local-typedef)        endif (DARWIN)     endif() -endif (NOT HAVOK_TPV) +endif ((USE_AUTOBUILD_3P OR USE_CONAN) AND NOT HAVOK_TPV)  set(viewer_SOURCE_FILES @@ -1360,12 +1374,15 @@ set_source_files_properties(     )  if (DARWIN) +  if (NOT USESYSTEMLIBS)    LIST(APPEND viewer_SOURCE_FILES llappviewermacosx.cpp)    LIST(APPEND viewer_SOURCE_FILES llappviewermacosx-objc.mm)    LIST(APPEND viewer_SOURCE_FILES llappviewermacosx-objc.h) +  endif (NOT USESYSTEMLIBS)    LIST(APPEND viewer_SOURCE_FILES llfilepicker_mac.mm)    LIST(APPEND viewer_HEADER_FILES llfilepicker_mac.h) +  if (NOT USESYSTEMLIBS)    # This should be compiled with the viewer.    LIST(APPEND viewer_SOURCE_FILES llappdelegate-objc.mm)    set_source_files_properties( @@ -1380,6 +1397,7 @@ if (DARWIN)      # warnings.      COMPILE_FLAGS "-fmodules -fcxx-modules -Wno-nullability-completeness"      ) +  endif (NOT USESYSTEMLIBS)    # Add resource files to the project.    set(viewer_RESOURCE_FILES @@ -1399,17 +1417,19 @@ if (DARWIN)    list(APPEND viewer_SOURCE_FILES ${viewer_RESOURCE_FILES})  endif (DARWIN) -if (LINUX) +if (USESYSTEMLIBS)      LIST(APPEND viewer_SOURCE_FILES llappviewerlinux.cpp)      set_source_files_properties(        llappviewerlinux.cpp        PROPERTIES        COMPILE_DEFINITIONS "${VIEWER_CHANNEL_VERSION_DEFINES}"        ) -    LIST(APPEND viewer_SOURCE_FILES llappviewerlinux_api_dbus.cpp) +    #LIST(APPEND viewer_SOURCE_FILES llappviewerlinux_api_dbus.cpp) +    if (NOT (CMAKE_CXX_COMPILER_ID MATCHES "AppleClang"))      SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed") +    endif () -endif (LINUX) +endif (USESYSTEMLIBS)  if (WINDOWS)      list(APPEND viewer_SOURCE_FILES @@ -1607,6 +1627,10 @@ set(viewer_APPSETTINGS_FILES      featuretable_mac.txt      ) +if (NOT (USE_AUTOBUILD_3P OR USE_CONAN)) +	list(REMOVE_ITEM viewer_APPSETTINGS_FILES packages-info.txt) +endif () +  source_group("App Settings" FILES ${viewer_APPSETTINGS_FILES})  set_source_files_properties(${viewer_APPSETTINGS_FILES} @@ -1901,6 +1925,8 @@ target_link_libraries(${VIEWER_BINARY_NAME}          ${LLPHYSICSEXTENSIONS_LIBRARIES}          ll::bugsplat          ll::tracy +        ll::libvlc +        ll::fontconfig          )  if( TARGET ll::intel_memops ) @@ -1914,6 +1940,21 @@ endif()  set(ARTWORK_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH      "Path to artwork files.") +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") +	set_source_files_properties(llappviewerlinux.cpp PROPERTIES +		COMPILE_FLAGS -Wno-dangling-gsl +	) +elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU") +	set_source_files_properties( +		llface.cpp +		llhttpretrypolicy.cpp +		llpanelface.cpp +		lltexturefetch.cpp +		PROPERTIES COMPILE_FLAGS -Wno-maybe-uninitialized) +	set_source_files_properties(llurl.cpp PROPERTIES COMPILE_FLAGS +		-Wno-stringop-truncation) +endif () +  if (LINUX)    set(product SecondLife-${ARCH}-${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}) @@ -2059,7 +2100,11 @@ if (DARWIN)        ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py      ) +  if (USE_AUTOBUILD_3P OR USE_CONAN)    add_dependencies(${VIEWER_BINARY_NAME} SLPlugin media_plugin_libvlc media_plugin_cef) +  else () +    add_dependencies(${VIEWER_BINARY_NAME} SLPlugin media_plugin_libvlc) +  endif ()    if (ENABLE_SIGNING)        set(SIGNING_SETTING "--signature=${SIGNING_IDENTITY}") diff --git a/indra/newview/ViewerInstall.cmake b/indra/newview/ViewerInstall.cmake index ac2247c815..e321d7e563 100644 --- a/indra/newview/ViewerInstall.cmake +++ b/indra/newview/ViewerInstall.cmake @@ -19,7 +19,8 @@ else (IS_ARTWORK_PRESENT)    message(STATUS "WARNING: Artwork is not present, and will not be installed")  endif (IS_ARTWORK_PRESENT) -install(FILES featuretable_linux.txt featuretable_solaris.txt +install(FILES featuretable_linux.txt +	#featuretable_solaris.txt          DESTINATION ${APP_SHARE_DIR}          ) diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 31a87bbde1..777fc4c3a7 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -131,10 +131,12 @@  #include "stringize.h"  #include "llcoros.h"  #include "llexception.h" -#if !LL_LINUX +//#if !LL_LINUX +#ifndef LL_USESYSTEMLIBS  #include "cef/dullahan_version.h" +#endif  #include "vlc/libvlc_version.h" -#endif // LL_LINUX +//#endif // LL_LINUX  #if LL_DARWIN  #include "llwindowmacosx.h" @@ -262,7 +264,7 @@ using namespace LL;  // define a self-registering event API object  #include "llappviewerlistener.h" -#if LL_LINUX && LL_GTK +#if (LL_LINUX || LL_FREEBSD) && LL_GTK  #include "glib.h"  #endif // (LL_LINUX) && LL_GTK @@ -286,7 +288,7 @@ extern BOOL gRandomizeFramerate;  extern BOOL gPeriodicSlowFrame;  extern BOOL gDebugGL; -#if LL_DARWIN +#if LL_DARWIN && !LL_SDL  extern BOOL gHiDPISupport;  #endif @@ -308,6 +310,8 @@ S32 gLastExecDuration = -1; // (<0 indicates unknown)  #   define LL_PLATFORM_KEY "mac"  #elif LL_LINUX  #   define LL_PLATFORM_KEY "lnx" +#elif LL_FREEBSD +#   define LL_PLATFORM_KEY "bsd"  #else  #   error "Unknown Platform"  #endif @@ -564,7 +568,7 @@ static void settings_to_globals()  	gShowObjectUpdates = gSavedSettings.getBOOL("ShowObjectUpdates");      LLWorldMapView::setScaleSetting(gSavedSettings.getF32("MapScale")); -#if LL_DARWIN +#if LL_DARWIN && !LL_SDL      LLWindowMacOSX::sUseMultGL = gSavedSettings.getBOOL("RenderAppleUseMultGL");  	gHiDPISupport = gSavedSettings.getBOOL("RenderHiDPI");  #endif @@ -891,7 +895,7 @@ bool LLAppViewer::init()  	std::string mime_types_name;  #if LL_DARWIN  	mime_types_name = "mime_types_mac.xml"; -#elif LL_LINUX +#elif LL_LINUX || LL_FREEBSD  	mime_types_name = "mime_types_linux.xml";  #else  	mime_types_name = "mime_types.xml"; @@ -1756,7 +1760,7 @@ bool LLAppViewer::cleanup()  	// one because it happens just after mFastTimerLogThread is deleted. This  	// comment is in case we guessed wrong, so we can move it here instead. -#if LL_LINUX +#if LL_LINUX || LL_FREEBSD  	// remove any old breakpad minidump files from the log directory  	if (! isError())  	{ @@ -3311,7 +3315,7 @@ LLSD LLAppViewer::getViewerInfo() const      info["GPU_SHADERS"] = gSavedSettings.getBOOL("RenderDeferred") ? "Enabled" : "Disabled";      info["TEXTURE_MEMORY"] = gSavedSettings.getS32("TextureMemory"); -#if LL_DARWIN +#if LL_DARWIN && !LL_SDL      info["HIDPI"] = gHiDPISupport;  #endif @@ -3341,7 +3345,8 @@ LLSD LLAppViewer::getViewerInfo() const  		info["VOICE_VERSION"] = LLTrans::getString("NotConnected");  	} -#if !LL_LINUX +//#if !LL_LINUX && !LL_FREEBSD && !LL_DARWIN +#ifndef LL_USESYSTEMLIBS  	std::ostringstream cef_ver_codec;  	cef_ver_codec << "Dullahan: ";  	cef_ver_codec << DULLAHAN_VERSION_MAJOR; @@ -3371,7 +3376,7 @@ LLSD LLAppViewer::getViewerInfo() const  	info["LIBCEF_VERSION"] = "Undefined";  #endif -#if !LL_LINUX +//#if !LL_LINUX  	std::ostringstream vlc_ver_codec;  	vlc_ver_codec << LIBVLC_VERSION_MAJOR;  	vlc_ver_codec << "."; @@ -3379,9 +3384,11 @@ LLSD LLAppViewer::getViewerInfo() const  	vlc_ver_codec << ".";  	vlc_ver_codec << LIBVLC_VERSION_REVISION;  	info["LIBVLC_VERSION"] = vlc_ver_codec.str(); +/*  #else  	info["LIBVLC_VERSION"] = "Undefined";  #endif +*/  	S32 packets_in = LLViewerStats::instance().getRecording().getSum(LLStatViewer::PACKETS_IN);  	if (packets_in > 0) diff --git a/indra/newview/llappviewerlinux.cpp b/indra/newview/llappviewerlinux.cpp index 9f58f90326..deb876e24d 100644 --- a/indra/newview/llappviewerlinux.cpp +++ b/indra/newview/llappviewerlinux.cpp @@ -120,7 +120,9 @@ bool LLAppViewerLinux::init()  	// before any mutexes are held, *and* some of our third-party  	// libraries likes to use glib functions; in short, do this here  	// really early in app startup! +#ifndef LL_USESYSTEMLIBS  	if (!g_thread_supported ()) g_thread_init (NULL); +#endif  	bool success = LLAppViewer::init(); @@ -328,11 +330,13 @@ void LLAppViewerLinux::initCrashReporting(bool reportFreeze)  {  	std::string cmd =gDirUtilp->getExecutableDir();  	cmd += gDirUtilp->getDirDelimiter(); -#if LL_LINUX +//#if LL_LINUX  	cmd += "linux-crash-logger.bin"; +/*  #else  # error Unknown platform  #endif +*/      std::stringstream pid_str;      pid_str <<  LLApp::getPid(); diff --git a/indra/newview/llappviewerlinux.h b/indra/newview/llappviewerlinux.h index 0289c43043..14e481f054 100644 --- a/indra/newview/llappviewerlinux.h +++ b/indra/newview/llappviewerlinux.h @@ -27,9 +27,11 @@  #ifndef LL_LLAPPVIEWERLINUX_H  #define LL_LLAPPVIEWERLINUX_H +#if LL_GTK  extern "C" {  # include <glib.h>  } +#endif  #if LL_DBUS_ENABLED  extern "C" { diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index 43dc10ef5f..01b1dd7a88 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -1188,7 +1188,7 @@ LLView* LLChatHistory::getHeader(const LLChat& chat,const LLStyle::Params& style  	LLChatHistoryHeader* header = LLChatHistoryHeader::createInstance(mMessageHeaderFilename);      if (header)          header->setup(chat, style_params, args); -	return header; +    return header;  }  void LLChatHistory::onClickMoreText() diff --git a/indra/newview/llconversationloglist.cpp b/indra/newview/llconversationloglist.cpp index 97b16a5e93..4f30ccfa07 100644 --- a/indra/newview/llconversationloglist.cpp +++ b/indra/newview/llconversationloglist.cpp @@ -93,8 +93,8 @@ BOOL LLConversationLogList::handleRightMouseDown(S32 x, S32 y, MASK mask)  	LLToggleableMenu* context_menu = mContextMenu.get();  	{  		context_menu->buildDrawLabels(); -	if (context_menu && size()) -		context_menu->updateParent(LLMenuGL::sMenuContainer); +		if (context_menu && size()) +			context_menu->updateParent(LLMenuGL::sMenuContainer);  		LLMenuGL::showPopup(this, context_menu, x, y);  	} diff --git a/indra/newview/lldirpicker.cpp b/indra/newview/lldirpicker.cpp index 01790ad19e..f2a027f174 100644 --- a/indra/newview/lldirpicker.cpp +++ b/indra/newview/lldirpicker.cpp @@ -37,7 +37,7 @@  #include "llviewercontrol.h"  #include "llwin32headerslean.h" -#if LL_LINUX || LL_DARWIN +#if LL_LINUX || LL_DARWIN || LL_FREEBSD  # include "llfilepicker.h"  #endif @@ -187,7 +187,7 @@ std::string LLDirPicker::getDirName()  	return mFilePicker->getFirstFile();  } -#elif LL_LINUX +#elif LL_LINUX || LL_FREEBSD  LLDirPicker::LLDirPicker() :  	mFileName(NULL), diff --git a/indra/newview/lldirpicker.h b/indra/newview/lldirpicker.h index 52febe4523..be37e8f369 100644 --- a/indra/newview/lldirpicker.h +++ b/indra/newview/lldirpicker.h @@ -78,7 +78,7 @@ private:  	void buildDirname( void );  	bool check_local_file_access_enabled(); -#if LL_LINUX || LL_DARWIN +#if LL_LINUX || LL_DARWIN || LL_FREEBSD  	// On Linux we just implement LLDirPicker on top of LLFilePicker  	LLFilePicker *mFilePicker;  #endif diff --git a/indra/newview/llenvironment.h b/indra/newview/llenvironment.h index 64fd170e43..1175baa828 100644 --- a/indra/newview/llenvironment.h +++ b/indra/newview/llenvironment.h @@ -27,6 +27,8 @@  #ifndef LL_ENVIRONMENT_H  #define LL_ENVIRONMENT_H +#include <array> +  #include "llsingleton.h"  #include "llmemory.h"  #include "llsd.h" diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index c3b3ccabb4..e1edc38923 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -924,7 +924,7 @@ BOOL LLFace::genVolumeBBoxes(const LLVolume &volume, S32 f,  		//VECTORIZE THIS  		LLMatrix4a mat_vert;  		mat_vert.loadu(mat_vert_in); -        LLVector4a new_extents[2]; +        //LLVector4a new_extents[2];  		llassert(less_than_max_mag(face.mExtents[0]));  		llassert(less_than_max_mag(face.mExtents[1])); diff --git a/indra/newview/llfeaturemanager.cpp b/indra/newview/llfeaturemanager.cpp index c7f3ef3490..1b03ec3e71 100644 --- a/indra/newview/llfeaturemanager.cpp +++ b/indra/newview/llfeaturemanager.cpp @@ -62,7 +62,7 @@  #if LL_DARWIN  const char FEATURE_TABLE_FILENAME[] = "featuretable_mac.txt"; -#elif LL_LINUX +#elif LL_LINUX || LL_FREEBSD  const char FEATURE_TABLE_FILENAME[] = "featuretable_linux.txt";  #else  const char FEATURE_TABLE_FILENAME[] = "featuretable.txt"; diff --git a/indra/newview/llfilepicker.cpp b/indra/newview/llfilepicker.cpp index f1f156c2e0..57874c966e 100644 --- a/indra/newview/llfilepicker.cpp +++ b/indra/newview/llfilepicker.cpp @@ -40,7 +40,7 @@  #include "llwindowsdl.h" // for some X/GTK utils to help with filepickers  #endif // LL_SDL -#if LL_LINUX +#if LL_LINUX || LL_FREEBSD  #include "llhttpconstants.h"    // file picker uses some of thes constants on Linux  #endif @@ -1053,7 +1053,7 @@ BOOL LLFilePicker::getSaveFileModeless(ESaveFilter filter,  }  //END LL_DARWIN -#elif LL_LINUX +#elif LL_LINUX || LL_FREEBSD  # if LL_GTK @@ -1320,6 +1320,14 @@ static std::string add_save_texture_filter_to_gtkchooser(GtkWindow *picker)  	return caption;  } +BOOL LLFilePicker::getMultipleOpenFilesModeless(ELoadFilter filter, +                                                void (*callback)(bool, std::vector<std::string> &, void*), +                                                void *userdata ) +{ +    LL_ERRS() << "NOT IMPLEMENTED" << LL_ENDL; +    return FALSE; +} +  BOOL LLFilePicker::getSaveFile( ESaveFilter filter, const std::string& filename, bool blocking )  {  	BOOL rtn = FALSE; @@ -1437,6 +1445,15 @@ BOOL LLFilePicker::getSaveFile( ESaveFilter filter, const std::string& filename,  	return rtn;  } +BOOL LLFilePicker::getSaveFileModeless(ESaveFilter filter, +                                       const std::string& filename, +                                       void (*callback)(bool, std::string&, void*), +                                       void *userdata) +{ +    LL_ERRS() << "NOT IMPLEMENTED" << LL_ENDL; +    return FALSE; +} +  BOOL LLFilePicker::getOpenFile( ELoadFilter filter, bool blocking )  {  	BOOL rtn = FALSE; @@ -1499,6 +1516,14 @@ BOOL LLFilePicker::getOpenFile( ELoadFilter filter, bool blocking )  	return rtn;  } +BOOL LLFilePicker::getOpenFileModeless(ELoadFilter filter, +                                       void (*callback)(bool, std::vector<std::string> &, void*), +                                       void *userdata) +{ +    LL_ERRS() << "NOT IMPLEMENTED" << LL_ENDL; +    return FALSE; +} +  BOOL LLFilePicker::getMultipleOpenFiles( ELoadFilter filter, bool blocking)  {  	BOOL rtn = FALSE; diff --git a/indra/newview/llfloaterregioninfo.cpp b/indra/newview/llfloaterregioninfo.cpp index d4eb40ff92..87e87adf9e 100644 --- a/indra/newview/llfloaterregioninfo.cpp +++ b/indra/newview/llfloaterregioninfo.cpp @@ -3855,7 +3855,7 @@ void LLPanelRegionEnvironment::onChkAllowOverride(bool value)      if (LLPanelEstateInfo::isLindenEstate())          notification = "ChangeLindenEstate"; -	LLSD args; +    LLSD args;  	args["ESTATENAME"] = LLEstateInfoModel::instance().getName();  	LLNotification::Params params(notification);  	params.substitutions(args); diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 6880cf2171..2d22dc8212 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -24,6 +24,8 @@   * $/LicenseInfo$   */ +#include <array> +  #include "llviewerprecompiledheaders.h"  #include "llimview.h" diff --git a/indra/newview/lllogchat.cpp b/indra/newview/lllogchat.cpp index ba82ff0b0f..1dd6ac9339 100644 --- a/indra/newview/lllogchat.cpp +++ b/indra/newview/lllogchat.cpp @@ -41,7 +41,9 @@  #include <boost/algorithm/string/trim.hpp>  #include <boost/algorithm/string/replace.hpp> +#ifndef LL_USESYSTEMLIBS  #include <boost/regex/v4/match_results.hpp> +#endif  #include <boost/foreach.hpp>  #if LL_MSVC diff --git a/indra/newview/llmanip.cpp b/indra/newview/llmanip.cpp index 6589aa477f..f551eea014 100644 --- a/indra/newview/llmanip.cpp +++ b/indra/newview/llmanip.cpp @@ -568,8 +568,10 @@ void LLManip::renderTickValue(const LLVector3& pos, F32 value, const std::string  			gGL.scalef(inv_zoom_amt, inv_zoom_amt, inv_zoom_amt);  		} +		/*  		LLColor4 shadow_color = LLColor4::black;  		shadow_color.mV[VALPHA] = color.mV[VALPHA] * 0.5f; +		*/  		if (fractional_portion != 0)  		{ diff --git a/indra/newview/llmediadataclient.cpp b/indra/newview/llmediadataclient.cpp index 9d0f62a30d..dabbe3a05d 100644 --- a/indra/newview/llmediadataclient.cpp +++ b/indra/newview/llmediadataclient.cpp @@ -204,7 +204,7 @@ bool LLMediaDataClient::isInQueue(const LLMediaDataClientObject::ptr_t &object)      if (std::find_if(mUnQueuedRequests.begin(), mUnQueuedRequests.end(), upred) != mUnQueuedRequests.end())          return true; -	return false; +    return false;  }  void LLMediaDataClient::removeFromQueue(const LLMediaDataClientObject::ptr_t &object) @@ -829,7 +829,7 @@ bool LLObjectMediaDataClient::isInQueue(const LLMediaDataClientObject::ptr_t &ob      if (std::find_if(mRoundRobinQueue.begin(), mRoundRobinQueue.end(), PredicateMatchRequest(object->getID())) != mRoundRobinQueue.end())          return true; -	return false; +    return false;  }  void LLObjectMediaDataClient::removeFromQueue(const LLMediaDataClientObject::ptr_t &object) diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp index 495153981b..cfc30e49a1 100644 --- a/indra/newview/llmodelpreview.cpp +++ b/indra/newview/llmodelpreview.cpp @@ -1715,7 +1715,7 @@ void LLModelPreview::genMeshOptimizerLODs(S32 which_lod, S32 meshopt_mode, U32 d          out << "Invalid level of detail: " << which_lod;          LL_WARNS() << out.str() << LL_ENDL;          LLFloaterModelPreview::addStringToLog(out, false); -        assert(lod >= -1 && lod < LLModel::NUM_LODS); +        assert(which_lod >= -1 && which_lod < LLModel::NUM_LODS);          return;      } diff --git a/indra/newview/lltoastalertpanel.h b/indra/newview/lltoastalertpanel.h index bd34e40642..fc646e6ac2 100644 --- a/indra/newview/lltoastalertpanel.h +++ b/indra/newview/lltoastalertpanel.h @@ -86,7 +86,7 @@ private:  		: mWidth(0)  		{} -		LLButton* mButton; +		LLButton* mButton = nullptr;  		std::string mURL;  		U32 mURLExternal;  		S32 mWidth; diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index 3725510b6a..a6002715bb 100644 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -5994,7 +5994,7 @@ LLVivoxVoiceClient::sessionState::~sessionState()      if (mMyIterator != mSession.end())          mSession.erase(mMyIterator); -	removeAllParticipants(); +    removeAllParticipants();  }  bool LLVivoxVoiceClient::sessionState::isCallBackPossible() diff --git a/indra/newview/llxmlrpctransaction.cpp b/indra/newview/llxmlrpctransaction.cpp index 8d178dbbdc..8baddac121 100644 --- a/indra/newview/llxmlrpctransaction.cpp +++ b/indra/newview/llxmlrpctransaction.cpp @@ -377,7 +377,7 @@ void LLXMLRPCTransaction::Impl::init(XMLRPC_REQUEST request, bool useGzip, const  	mCertStore = gSavedSettings.getString("CertStore");  	httpOpts->setSSLVerifyPeer( vefifySSLCert ); -	httpOpts->setSSLVerifyHost( vefifySSLCert ? 2 : 0); +	httpOpts->setSSLVerifyHost( vefifySSLCert );  	// LLRefCounted starts with a 1 ref, so don't add a ref in the smart pointer  	httpHeaders = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders()); diff --git a/indra/newview/skins/default/xui/da/language_settings.xml b/indra/newview/skins/default/xui/da/language_settings.xml index 0e3cbfd2d2..fd3fa6c6fd 100644 --- a/indra/newview/skins/default/xui/da/language_settings.xml +++ b/indra/newview/skins/default/xui/da/language_settings.xml @@ -7,6 +7,7 @@  	<string name="MacLocale">da_DK.UTF-8</string>  	<string name="DarwinLocale">da_DK.UTF-8</string>  	<string name="LinuxLocale">da_DK.UTF-8</string> +	<string name="FreeBSDLocale">da_DK.UTF-8</string>  	<!--   	datetimeToCodes["wkday"]	= "%a";		// Thu diff --git a/indra/newview/skins/default/xui/da/strings.xml b/indra/newview/skins/default/xui/da/strings.xml index e4f99d14e9..d7930d9e81 100644 --- a/indra/newview/skins/default/xui/da/strings.xml +++ b/indra/newview/skins/default/xui/da/strings.xml @@ -5,7 +5,7 @@       that are returned from one component and may appear in many places-->  <strings>  	<string name="CAPITALIZED_APP_NAME"> -		SECOND LIFE +		MEGAPAHIT  	</string>  	<string name="SUPPORT_SITE">  		Second Life Support Portal diff --git a/indra/newview/skins/default/xui/de/language_settings.xml b/indra/newview/skins/default/xui/de/language_settings.xml index f9346eef7d..912b30615e 100644 --- a/indra/newview/skins/default/xui/de/language_settings.xml +++ b/indra/newview/skins/default/xui/de/language_settings.xml @@ -7,6 +7,7 @@  	<string name="MacLocale">de_DE.UTF-8</string>  	<string name="DarwinLocale">de_DE.UTF-8</string>  	<string name="LinuxLocale">de_DE.UTF-8</string> +	<string name="FreeBSDLocale">de_DE.UTF-8</string>  	<!--   	datetimeToCodes["wkday"]	= "%a";		// Thu diff --git a/indra/newview/skins/default/xui/de/strings.xml b/indra/newview/skins/default/xui/de/strings.xml index a9e7626dc5..3f4adf4d4b 100644 --- a/indra/newview/skins/default/xui/de/strings.xml +++ b/indra/newview/skins/default/xui/de/strings.xml @@ -1,8 +1,8 @@  <?xml version="1.0" ?>  <strings>  	<string name="SECOND_LIFE">Second Life</string> -	<string name="APP_NAME">Second Life</string> -	<string name="CAPITALIZED_APP_NAME">SECOND LIFE</string> +	<string name="APP_NAME">Megapahit</string> +	<string name="CAPITALIZED_APP_NAME">MEGAPAHIT</string>  	<string name="SECOND_LIFE_GRID">Second Life-Grid:</string>  	<string name="SUPPORT_SITE">Second Life Support-Portal</string>  	<string name="StartupDetectingHardware">Hardware wird erfasst...</string> diff --git a/indra/newview/skins/default/xui/en/language_settings.xml b/indra/newview/skins/default/xui/en/language_settings.xml index d418fc38e3..2e874554a1 100644 --- a/indra/newview/skins/default/xui/en/language_settings.xml +++ b/indra/newview/skins/default/xui/en/language_settings.xml @@ -7,6 +7,7 @@  	<string name="MacLocale">C</string>  	<string name="DarwinLocale">C</string>  	<string name="LinuxLocale">C</string> +	<string name="FreeBSDLocale">C</string>    <!-- Note: for plural nouns, see strings.xml.  For example:         AgeYearsA = singular, diff --git a/indra/newview/skins/default/xui/en/strings.xml b/indra/newview/skins/default/xui/en/strings.xml index 0b19ad1473..09ccc7b8d2 100644 --- a/indra/newview/skins/default/xui/en/strings.xml +++ b/indra/newview/skins/default/xui/en/strings.xml @@ -7,8 +7,8 @@  	<!-- Default Args - these arguments will be replaced in all strings -->  	<string name="SECOND_LIFE">Second Life</string> -	<string name="APP_NAME">Second Life</string> -	<string name="CAPITALIZED_APP_NAME">SECOND LIFE</string> +	<string name="APP_NAME">Megapahit</string> +	<string name="CAPITALIZED_APP_NAME">MEGAPAHIT</string>  	<string name="SECOND_LIFE_GRID">Second Life Grid</string>  	<string name="SUPPORT_SITE">Second Life Support Portal</string> diff --git a/indra/newview/skins/default/xui/es/language_settings.xml b/indra/newview/skins/default/xui/es/language_settings.xml index 997293a741..c345ad73ad 100644 --- a/indra/newview/skins/default/xui/es/language_settings.xml +++ b/indra/newview/skins/default/xui/es/language_settings.xml @@ -7,6 +7,7 @@  	<string name="MacLocale">es_ES.UTF-8</string>  	<string name="DarwinLocale">es_ES.UTF-8</string>  	<string name="LinuxLocale">es_ES.UTF-8</string> +	<string name="FreeBSDLocale">es_ES.UTF-8</string>  	<!--   	datetimeToCodes["wkday"]	= "%a";		// Thu diff --git a/indra/newview/skins/default/xui/es/strings.xml b/indra/newview/skins/default/xui/es/strings.xml index cd8e7687ae..36d9b03efc 100644 --- a/indra/newview/skins/default/xui/es/strings.xml +++ b/indra/newview/skins/default/xui/es/strings.xml @@ -1,6 +1,6 @@  <?xml version="1.0" ?>  <strings> -	<string name="CAPITALIZED_APP_NAME">SECOND LIFE</string> +	<string name="CAPITALIZED_APP_NAME">MEGAPAHIT</string>  	<string name="SUPPORT_SITE">Portal de Soporte de Second Life</string>  	<string name="StartupDetectingHardware">Identificando el hardware...</string>  	<string name="StartupLoading">Instalando [APP_NAME]...</string> diff --git a/indra/newview/skins/default/xui/fr/language_settings.xml b/indra/newview/skins/default/xui/fr/language_settings.xml index fdac9d65a7..0dc61fc258 100644 --- a/indra/newview/skins/default/xui/fr/language_settings.xml +++ b/indra/newview/skins/default/xui/fr/language_settings.xml @@ -7,6 +7,7 @@  	<string name="MacLocale">fr_FR.UTF-8</string>  	<string name="DarwinLocale">fr_FR.UTF-8</string>  	<string name="LinuxLocale">fr_FR.UTF-8</string> +	<string name="FreeBSDLocale">fr_FR.UTF-8</string>  	<!--   	datetimeToCodes["wkday"]	= "%a";		// Thu diff --git a/indra/newview/skins/default/xui/fr/strings.xml b/indra/newview/skins/default/xui/fr/strings.xml index 0a3fbeb603..00009b6a05 100644 --- a/indra/newview/skins/default/xui/fr/strings.xml +++ b/indra/newview/skins/default/xui/fr/strings.xml @@ -1,8 +1,8 @@  <?xml version="1.0" ?>  <strings>  	<string name="SECOND_LIFE">Second Life</string> -	<string name="APP_NAME">Second Life</string> -	<string name="CAPITALIZED_APP_NAME">SECOND LIFE</string> +	<string name="APP_NAME">Megapahit</string> +	<string name="CAPITALIZED_APP_NAME">MEGAPAHIT</string>  	<string name="SECOND_LIFE_GRID">Grille de Second Life</string>  	<string name="SUPPORT_SITE">Portail Assistance Second Life</string>  	<string name="StartupDetectingHardware">Détection du matériel...</string> diff --git a/indra/newview/skins/default/xui/it/language_settings.xml b/indra/newview/skins/default/xui/it/language_settings.xml index 5f448fa828..205ee3dbef 100644 --- a/indra/newview/skins/default/xui/it/language_settings.xml +++ b/indra/newview/skins/default/xui/it/language_settings.xml @@ -7,6 +7,7 @@  	<string name="MacLocale">it_IT.UTF-8</string>  	<string name="DarwinLocale">it_IT.UTF-8</string>  	<string name="LinuxLocale">it_IT.UTF-8</string> +	<string name="FreeBSDLocale">it_IT.UTF-8</string>  	<!--   	datetimeToCodes["wkday"]	= "%a";		// Thu diff --git a/indra/newview/skins/default/xui/it/strings.xml b/indra/newview/skins/default/xui/it/strings.xml index 178bb90ca6..49b2b27668 100644 --- a/indra/newview/skins/default/xui/it/strings.xml +++ b/indra/newview/skins/default/xui/it/strings.xml @@ -1,8 +1,8 @@  <?xml version="1.0" ?>  <strings>  	<string name="SECOND_LIFE">Second Life</string> -	<string name="APP_NAME">Second Life</string> -	<string name="CAPITALIZED_APP_NAME">SECOND LIFE</string> +	<string name="APP_NAME">Megapahit</string> +	<string name="CAPITALIZED_APP_NAME">MEGAPAHIT</string>  	<string name="SUPPORT_SITE">Portale di supporto di Second Life</string>  	<string name="StartupDetectingHardware">Ricerca hardware...</string>  	<string name="StartupLoading">Caricamento di [APP_NAME]...</string> diff --git a/indra/newview/skins/default/xui/ja/language_settings.xml b/indra/newview/skins/default/xui/ja/language_settings.xml index facae22acf..c6f9ae3e26 100644 --- a/indra/newview/skins/default/xui/ja/language_settings.xml +++ b/indra/newview/skins/default/xui/ja/language_settings.xml @@ -12,6 +12,9 @@  	<string name="LinuxLocale">  		ja_JP.UTF-8  	</string> +	<string name="FreeBSDLocale"> +		ja_JP.UTF-8 +	</string>  	<string name="TimeHour">  		hour,datetime,slt  	</string> diff --git a/indra/newview/skins/default/xui/ja/strings.xml b/indra/newview/skins/default/xui/ja/strings.xml index fa6c329fe7..52387a07a8 100644 --- a/indra/newview/skins/default/xui/ja/strings.xml +++ b/indra/newview/skins/default/xui/ja/strings.xml @@ -4,10 +4,10 @@  		Second Life  	</string>  	<string name="APP_NAME"> -		Second Life +		Megapahit  	</string>  	<string name="CAPITALIZED_APP_NAME"> -		SECOND LIFE +		MEGAPAHIT  	</string>  	<string name="SECOND_LIFE_GRID">  		Second Lifeグリッド diff --git a/indra/newview/skins/default/xui/pl/language_settings.xml b/indra/newview/skins/default/xui/pl/language_settings.xml index 0057ca530c..b84d817aa5 100644 --- a/indra/newview/skins/default/xui/pl/language_settings.xml +++ b/indra/newview/skins/default/xui/pl/language_settings.xml @@ -4,6 +4,7 @@  	<string name="MacLocale">pl_PL.UTF-8</string>  	<string name="DarwinLocale">pl_PL.UTF-8</string>  	<string name="LinuxLocale">pl_PL.UTF-8</string> +	<string name="FreeBSDLocale">pl_PL.UTF-8</string>  	<string name="TimeHour">hour,datetime,slt</string>  	<string name="TimeMin">min,datetime,slt</string>  	<string name="TimeSec">second,datetime,slt</string> diff --git a/indra/newview/skins/default/xui/pt/language_settings.xml b/indra/newview/skins/default/xui/pt/language_settings.xml index 8799475ace..e31af58455 100644 --- a/indra/newview/skins/default/xui/pt/language_settings.xml +++ b/indra/newview/skins/default/xui/pt/language_settings.xml @@ -7,6 +7,7 @@  	<string name="MacLocale">pt_PT.UTF-8</string>  	<string name="DarwinLocale">pt_PT.UTF-8</string>  	<string name="LinuxLocale">pt_PT.UTF-8</string> +	<string name="FreeBSDLocale">pt_PT.UTF-8</string>  	<!--   	datetimeToCodes["wkday"]	= "%a";		// Thu diff --git a/indra/newview/skins/default/xui/pt/strings.xml b/indra/newview/skins/default/xui/pt/strings.xml index 6db5da2e89..a1ec99ea47 100644 --- a/indra/newview/skins/default/xui/pt/strings.xml +++ b/indra/newview/skins/default/xui/pt/strings.xml @@ -1,6 +1,6 @@  <?xml version="1.0" ?>  <strings> -	<string name="CAPITALIZED_APP_NAME">SECOND LIFE</string> +	<string name="CAPITALIZED_APP_NAME">MEGAPAHIT</string>  	<string name="SUPPORT_SITE">Portal de Supporte Second Life</string>  	<string name="StartupDetectingHardware">Detectando hardware...</string>  	<string name="StartupLoading">Carregando [APP_NAME]...</string> diff --git a/indra/newview/skins/default/xui/ru/strings.xml b/indra/newview/skins/default/xui/ru/strings.xml index 61d836a2d1..649d5e7107 100644 --- a/indra/newview/skins/default/xui/ru/strings.xml +++ b/indra/newview/skins/default/xui/ru/strings.xml @@ -8,10 +8,10 @@  		Second Life  	</string>  	<string name="APP_NAME"> -		Second Life +		Megapahit  	</string>  	<string name="CAPITALIZED_APP_NAME"> -		SECOND LIFE +		MEGAPAHIT  	</string>  	<string name="SECOND_LIFE_GRID">  		Сетка Second Life diff --git a/indra/newview/skins/default/xui/tr/strings.xml b/indra/newview/skins/default/xui/tr/strings.xml index e709a4c5d6..f80d8e3382 100644 --- a/indra/newview/skins/default/xui/tr/strings.xml +++ b/indra/newview/skins/default/xui/tr/strings.xml @@ -8,10 +8,10 @@  		Second Life  	</string>  	<string name="APP_NAME"> -		Second Life +		Megapahit  	</string>  	<string name="CAPITALIZED_APP_NAME"> -		SECOND LIFE +		MEGAPAHIT  	</string>  	<string name="SECOND_LIFE_GRID">  		Second Life Ağı  | 
