diff --git a/indra/llui/llxuiparser.cpp b/indra/llui/llxuiparser.cpp index d70a6b4d4..1d367abfc 100644 --- a/indra/llui/llxuiparser.cpp +++ b/indra/llui/llxuiparser.cpp @@ -38,8 +38,6 @@ #include #include -#include -//#include #include #include "lluicolor.h" @@ -679,7 +677,7 @@ LLXUIParser::LLXUIParser() } } -LLTrace::BlockTimerStatHandle FTM_PARSE_XUI("XUI Parsing"); +static LLTrace::BlockTimerStatHandle FTM_PARSE_XUI("XUI Parsing"); const LLXMLNodePtr DUMMY_NODE = new LLXMLNode(); void LLXUIParser::readXUI(LLXMLNodePtr node, LLInitParam::BaseBlock& block, const std::string& filename, bool silent) @@ -759,7 +757,7 @@ bool LLXUIParser::readXUIImpl(LLXMLNodePtr nodep, LLInitParam::BaseBlock& block) // and if not, treat as a child element of the current node // e.g. will interpret as "button.rect" // since there is no widget named "rect" - if (child_name.find(".") == std::string::npos) + if (child_name.find('.') == std::string::npos) { mNameStack.push_back(std::make_pair(child_name, true)); num_tokens_pushed++; @@ -1366,7 +1364,9 @@ struct ScopedFile }; LLSimpleXUIParser::LLSimpleXUIParser(LLSimpleXUIParser::element_start_callback_t element_cb) : Parser(sSimpleXUIReadFuncs, sSimpleXUIWriteFuncs, sSimpleXUIInspectFuncs), + mParser(nullptr), mCurReadDepth(0), + mCurAttributeValueBegin(nullptr), mElementCB(element_cb) { if (sSimpleXUIReadFuncs.empty()) @@ -1500,7 +1500,7 @@ void LLSimpleXUIParser::startElement(const char *name, const char **atts) } else { // compound attribute - if (child_name.find(".") == std::string::npos) + if (child_name.find('.') == std::string::npos) { mNameStack.push_back(std::make_pair(child_name, true)); num_tokens_pushed++; diff --git a/indra/llui/llxuiparser.h b/indra/llui/llxuiparser.h index 6ada48d05..b24e07cc3 100644 --- a/indra/llui/llxuiparser.h +++ b/indra/llui/llxuiparser.h @@ -31,10 +31,6 @@ #include "llregistry.h" #include "llxmlnode.h" -#ifndef BOOST_FUNCTION_HPP_INCLUDED -#include -#define BOOST_FUNCTION_HPP_INCLUDED -#endif #include #include #include @@ -63,7 +59,7 @@ public: void writeXSD(const std::string& name, LLXMLNodePtr node, const LLInitParam::BaseBlock& block, const std::string& xml_namespace); /*virtual*/ std::string getCurrentElementName() { return LLStringUtil::null; } - + /*virtual*/ std::string getCurrentFileName() { return LLStringUtil::null; } LLXSDWriter(); ~LLXSDWriter(); @@ -101,6 +97,7 @@ public: typedef LLInitParam::Parser::name_stack_t name_stack_t; /*virtual*/ std::string getCurrentElementName(); + /*virtual*/ std::string getCurrentFileName() { return mCurFileName; } /*virtual*/ void parserWarning(const std::string& message); /*virtual*/ void parserError(const std::string& message); @@ -199,10 +196,11 @@ public: typedef LLInitParam::Parser::name_stack_t name_stack_t; typedef LLInitParam::BaseBlock* (*element_start_callback_t)(LLSimpleXUIParser&, const char* block_name); - LLSimpleXUIParser(element_start_callback_t element_cb = NULL); + LLSimpleXUIParser(element_start_callback_t element_cb = nullptr); virtual ~LLSimpleXUIParser(); /*virtual*/ std::string getCurrentElementName(); + /*virtual*/ std::string getCurrentFileName() { return mCurFileName; } /*virtual*/ void parserWarning(const std::string& message); /*virtual*/ void parserError(const std::string& message); diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp index 9ef5a9859..ecb6c3c30 100644 --- a/indra/newview/llviewercontrol.cpp +++ b/indra/newview/llviewercontrol.cpp @@ -722,6 +722,7 @@ void settings_setup_listeners() gSavedSettings.getControl("RenderAutoMaskAlphaNonDeferred")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _2)); gSavedSettings.getControl("SHUseRMSEAutoMask")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _2)); gSavedSettings.getControl("SHAutoMaskMaxRMSE")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _2)); + gSavedSettings.getControl("SHAutoMaskMaxMid")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _2)); gSavedSettings.getControl("SHAltBatching")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _2)); gSavedSettings.getControl("RenderObjectBump")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _2)); gSavedSettings.getControl("RenderMaxVBOSize")->getSignal()->connect(boost::bind(&handleResetVertexBuffersChanged, _2));