diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llui/lluictrlfactory.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/lluictrlfactory.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/linden/indra/llui/lluictrlfactory.cpp b/linden/indra/llui/lluictrlfactory.cpp index 5a35783..77ef749 100644 --- a/linden/indra/llui/lluictrlfactory.cpp +++ b/linden/indra/llui/lluictrlfactory.cpp | |||
@@ -210,12 +210,18 @@ LLUICtrlFactory::LLUICtrlFactory() | |||
210 | LLUICtrlCreator<LLMenuBarGL>::registerCreator(LL_MENU_BAR_GL_TAG, this); | 210 | LLUICtrlCreator<LLMenuBarGL>::registerCreator(LL_MENU_BAR_GL_TAG, this); |
211 | LLUICtrlCreator<LLScrollingPanelList>::registerCreator(LL_SCROLLING_PANEL_LIST_TAG, this); | 211 | LLUICtrlCreator<LLScrollingPanelList>::registerCreator(LL_SCROLLING_PANEL_LIST_TAG, this); |
212 | 212 | ||
213 | setupPaths(); | ||
213 | 214 | ||
215 | } | ||
216 | |||
217 | void LLUICtrlFactory::setupPaths() | ||
218 | { | ||
214 | LLString filename = gDirUtilp->getExpandedFilename(LL_PATH_SKINS, "paths.xml"); | 219 | LLString filename = gDirUtilp->getExpandedFilename(LL_PATH_SKINS, "paths.xml"); |
215 | 220 | ||
216 | LLXMLNodePtr root; | 221 | LLXMLNodePtr root; |
217 | BOOL success = LLXMLNode::parseFile(filename, root, NULL); | 222 | BOOL success = LLXMLNode::parseFile(filename, root, NULL); |
218 | 223 | mXUIPaths.clear(); | |
224 | |||
219 | if (!success) | 225 | if (!success) |
220 | { | 226 | { |
221 | LLString slash = gDirUtilp->getDirDelimiter(); | 227 | LLString slash = gDirUtilp->getDirDelimiter(); |
@@ -239,7 +245,7 @@ LLUICtrlFactory::LLUICtrlFactory() | |||
239 | path_val_ui.setArg("[Language]", language); | 245 | path_val_ui.setArg("[Language]", language); |
240 | LLString fullpath = app_dir + path_val_ui.getString(); | 246 | LLString fullpath = app_dir + path_val_ui.getString(); |
241 | 247 | ||
242 | if (mXUIPaths.empty() || (find(mXUIPaths.begin(), mXUIPaths.end(), fullpath) == mXUIPaths.end()) ) | 248 | if (std::find(mXUIPaths.begin(), mXUIPaths.end(), fullpath) == mXUIPaths.end()) |
243 | { | 249 | { |
244 | mXUIPaths.push_back(app_dir + path_val_ui.getString()); | 250 | mXUIPaths.push_back(app_dir + path_val_ui.getString()); |
245 | } | 251 | } |
@@ -297,7 +303,7 @@ bool LLUICtrlFactory::getLayeredXMLNode(const LLString &filename, LLXMLNodePtr& | |||
297 | // buildFloater() | 303 | // buildFloater() |
298 | //----------------------------------------------------------------------------- | 304 | //----------------------------------------------------------------------------- |
299 | void LLUICtrlFactory::buildFloater(LLFloater* floaterp, const LLString &filename, | 305 | void LLUICtrlFactory::buildFloater(LLFloater* floaterp, const LLString &filename, |
300 | const LLCallbackMap::map_t* factory_map, BOOL open) | 306 | const LLCallbackMap::map_t* factory_map, BOOL open) /* Flawfinder: ignore */ |
301 | { | 307 | { |
302 | LLXMLNodePtr root; | 308 | LLXMLNodePtr root; |
303 | 309 | ||
@@ -318,7 +324,7 @@ void LLUICtrlFactory::buildFloater(LLFloater* floaterp, const LLString &filename | |||
318 | mFactoryStack.push_front(factory_map); | 324 | mFactoryStack.push_front(factory_map); |
319 | } | 325 | } |
320 | 326 | ||
321 | floaterp->initFloaterXML(root, NULL, this, open); | 327 | floaterp->initFloaterXML(root, NULL, this, open); /* Flawfinder: ignore */ |
322 | 328 | ||
323 | if (LLUI::sShowXUINames) | 329 | if (LLUI::sShowXUINames) |
324 | { | 330 | { |