diff options
Diffstat (limited to 'indra/llui/lluictrlfactory.cpp')
-rw-r--r-- | indra/llui/lluictrlfactory.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/llui/lluictrlfactory.cpp b/indra/llui/lluictrlfactory.cpp index 8ae9fd0284..21278455da 100644 --- a/indra/llui/lluictrlfactory.cpp +++ b/indra/llui/lluictrlfactory.cpp @@ -191,12 +191,18 @@ LLUICtrlFactory::LLUICtrlFactory() LLUICtrlCreator<LLMenuBarGL>::registerCreator(LL_MENU_BAR_GL_TAG, this); LLUICtrlCreator<LLScrollingPanelList>::registerCreator(LL_SCROLLING_PANEL_LIST_TAG, this); + setupPaths(); +} + +void LLUICtrlFactory::setupPaths() +{ LLString filename = gDirUtilp->getExpandedFilename(LL_PATH_SKINS, "paths.xml"); LLXMLNodePtr root; BOOL success = LLXMLNode::parseFile(filename, root, NULL); - + mXUIPaths.clear(); + if (!success) { LLString slash = gDirUtilp->getDirDelimiter(); @@ -220,7 +226,7 @@ LLUICtrlFactory::LLUICtrlFactory() path_val_ui.setArg("[Language]", language); LLString fullpath = app_dir + path_val_ui.getString(); - if (mXUIPaths.empty() || (find(mXUIPaths.begin(), mXUIPaths.end(), fullpath) == mXUIPaths.end()) ) + if (std::find(mXUIPaths.begin(), mXUIPaths.end(), fullpath) == mXUIPaths.end()) { mXUIPaths.push_back(app_dir + path_val_ui.getString()); } |