aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelnetwork.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanelnetwork.cpp')
-rw-r--r--linden/indra/newview/llpanelnetwork.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/llpanelnetwork.cpp b/linden/indra/newview/llpanelnetwork.cpp
index a900d0e..e324c3b 100644
--- a/linden/indra/newview/llpanelnetwork.cpp
+++ b/linden/indra/newview/llpanelnetwork.cpp
@@ -63,7 +63,7 @@ LLPanelNetwork::LLPanelNetwork()
63 63
64BOOL LLPanelNetwork::postBuild() 64BOOL LLPanelNetwork::postBuild()
65{ 65{
66 LLString cache_location = gDirUtilp->getExpandedFilename(LL_PATH_CACHE, ""); 66 std::string cache_location = gDirUtilp->getExpandedFilename(LL_PATH_CACHE, "");
67 childSetText("cache_location", cache_location); 67 childSetText("cache_location", cache_location);
68 68
69 childSetAction("clear_cache", onClickClearCache, this); 69 childSetAction("clear_cache", onClickClearCache, this);
@@ -121,8 +121,8 @@ void LLPanelNetwork::onClickSetCache(void* user_data)
121{ 121{
122 LLPanelNetwork* self = (LLPanelNetwork*)user_data; 122 LLPanelNetwork* self = (LLPanelNetwork*)user_data;
123 123
124 LLString cur_name(gSavedSettings.getString("CacheLocation")); 124 std::string cur_name(gSavedSettings.getString("CacheLocation"));
125 LLString proposed_name(cur_name); 125 std::string proposed_name(cur_name);
126 126
127 LLDirPicker& picker = LLDirPicker::instance(); 127 LLDirPicker& picker = LLDirPicker::instance();
128 if (! picker.getDir(&proposed_name ) ) 128 if (! picker.getDir(&proposed_name ) )
@@ -130,7 +130,7 @@ void LLPanelNetwork::onClickSetCache(void* user_data)
130 return; //Canceled! 130 return; //Canceled!
131 } 131 }
132 132
133 LLString dir_name = picker.getDirName(); 133 std::string dir_name = picker.getDirName();
134 if (!dir_name.empty() && dir_name != cur_name) 134 if (!dir_name.empty() && dir_name != cur_name)
135 { 135 {
136 self->childSetText("cache_location", dir_name); 136 self->childSetText("cache_location", dir_name);
@@ -139,7 +139,7 @@ void LLPanelNetwork::onClickSetCache(void* user_data)
139 } 139 }
140 else 140 else
141 { 141 {
142 LLString cache_location = gDirUtilp->getCacheDir(); 142 std::string cache_location = gDirUtilp->getCacheDir();
143 self->childSetText("cache_location", cache_location); 143 self->childSetText("cache_location", cache_location);
144 } 144 }
145} 145}
@@ -153,7 +153,7 @@ void LLPanelNetwork::onClickResetCache(void* user_data)
153 gSavedSettings.setString("NewCacheLocation", ""); 153 gSavedSettings.setString("NewCacheLocation", "");
154 gViewerWindow->alertXml("CacheWillBeMoved"); 154 gViewerWindow->alertXml("CacheWillBeMoved");
155 } 155 }
156 LLString cache_location = gDirUtilp->getCacheDir(true); 156 std::string cache_location = gDirUtilp->getCacheDir(true);
157 self->childSetText("cache_location", cache_location); 157 self->childSetText("cache_location", cache_location);
158} 158}
159 159