diff --git a/indra/newview/fsdata.cpp b/indra/newview/fsdata.cpp index 0e19ba9215..032d01d6eb 100644 --- a/indra/newview/fsdata.cpp +++ b/indra/newview/fsdata.cpp @@ -499,7 +499,7 @@ void FSData::saveLLSD(const LLSD& data, const std::string& filename) { LL_INFOS("Data") << "Saving " << filename << LL_ENDL; llofstream file; - file.open(filename); + file.open(filename.c_str()); if(!file.is_open()) { LL_WARNS("Data") << "Unable to open " << filename << LL_ENDL; diff --git a/indra/newview/lggbeamcolormapfloater.cpp b/indra/newview/lggbeamcolormapfloater.cpp index 4e4df34b87..453440eaba 100644 --- a/indra/newview/lggbeamcolormapfloater.cpp +++ b/indra/newview/lggbeamcolormapfloater.cpp @@ -363,7 +363,7 @@ void lggBeamColorMapFloater::onClickSave() LLSD main = getMyDataSerialized(); llofstream export_file; - export_file.open(filename); + export_file.open(filename.c_str()); LLSDSerialize::toPrettyXML(main, export_file); export_file.close(); diff --git a/indra/newview/lggbeammapfloater.cpp b/indra/newview/lggbeammapfloater.cpp index 66088decc3..bda652a185 100644 --- a/indra/newview/lggbeammapfloater.cpp +++ b/indra/newview/lggbeammapfloater.cpp @@ -241,7 +241,7 @@ void lggBeamMapFloater::onClickSave() main["data"] = getMyDataSerialized(); llofstream export_file; - export_file.open(filename); + export_file.open(filename.c_str()); LLSDSerialize::toPrettyXML(main, export_file); export_file.close(); gSavedSettings.setString("FSBeamShape",gDirUtilp->getBaseFileName(filename,true)); diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index 84254a265a..97ea8d21e5 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -229,7 +229,7 @@ void LLPanelLogin::addUsersWithFavoritesToUsername() std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "stored_favorites.xml"); LLSD fav_llsd; llifstream file; - file.open(filename); + file.open(filename.c_str()); if (!file.is_open()) return; LLSDSerialize::fromXML(fav_llsd, file); for (LLSD::map_const_iterator iter = fav_llsd.beginMap(); @@ -260,7 +260,7 @@ void LLPanelLogin::addFavoritesToStartLocation() std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "stored_favorites.xml"); LLSD fav_llsd; llifstream file; - file.open(filename); + file.open(filename.c_str()); if (!file.is_open()) return; LLSDSerialize::fromXML(fav_llsd, file); for (LLSD::map_const_iterator iter = fav_llsd.beginMap(); diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 8f48a59846..e26f21dd5b 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -340,7 +340,7 @@ public: std::string filename = gDirUtilp->getExpandedFilename(LL_PATH_USER_SETTINGS, "grids.remote.xml"); llofstream out_file; - out_file.open(filename); + out_file.open(filename.c_str()); LLSDSerialize::toPrettyXML(content, out_file); out_file.close(); llinfos << "GridListRequest: got new list." << llendl;