diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llpaneldirplaces.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llpaneldirplaces.cpp')
-rw-r--r-- | linden/indra/newview/llpaneldirplaces.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llpaneldirplaces.cpp b/linden/indra/newview/llpaneldirplaces.cpp index 5b63e23..a795845 100644 --- a/linden/indra/newview/llpaneldirplaces.cpp +++ b/linden/indra/newview/llpaneldirplaces.cpp | |||
@@ -111,7 +111,7 @@ void LLPanelDirPlaces::draw() | |||
111 | // virtual | 111 | // virtual |
112 | void LLPanelDirPlaces::performQuery() | 112 | void LLPanelDirPlaces::performQuery() |
113 | { | 113 | { |
114 | LLString place_name = childGetValue("name").asString(); | 114 | std::string place_name = childGetValue("name").asString(); |
115 | if (place_name.length() < mMinSearchChars) | 115 | if (place_name.length() < mMinSearchChars) |
116 | { | 116 | { |
117 | return; | 117 | return; |
@@ -119,7 +119,7 @@ void LLPanelDirPlaces::performQuery() | |||
119 | 119 | ||
120 | // "hi " is three chars but not a long-enough search | 120 | // "hi " is three chars but not a long-enough search |
121 | std::string query_string = place_name; | 121 | std::string query_string = place_name; |
122 | LLString::trim( query_string ); | 122 | LLStringUtil::trim( query_string ); |
123 | bool query_was_filtered = (query_string != place_name); | 123 | bool query_was_filtered = (query_string != place_name); |
124 | 124 | ||
125 | // possible we threw away all the short words in the query so check length | 125 | // possible we threw away all the short words in the query so check length |
@@ -132,12 +132,12 @@ void LLPanelDirPlaces::performQuery() | |||
132 | // if we filtered something out, display a popup | 132 | // if we filtered something out, display a popup |
133 | if ( query_was_filtered ) | 133 | if ( query_was_filtered ) |
134 | { | 134 | { |
135 | LLString::format_map_t args; | 135 | LLStringUtil::format_map_t args; |
136 | args["[FINALQUERY]"] = query_string; | 136 | args["[FINALQUERY]"] = query_string; |
137 | gViewerWindow->alertXml("SeachFilteredOnShortWords", args); | 137 | gViewerWindow->alertXml("SeachFilteredOnShortWords", args); |
138 | }; | 138 | }; |
139 | 139 | ||
140 | LLString catstring = childGetValue("Category").asString(); | 140 | std::string catstring = childGetValue("Category").asString(); |
141 | 141 | ||
142 | // Because LLParcel::C_ANY is -1, must do special check | 142 | // Because LLParcel::C_ANY is -1, must do special check |
143 | S32 category = 0; | 143 | S32 category = 0; |
@@ -147,7 +147,7 @@ void LLPanelDirPlaces::performQuery() | |||
147 | } | 147 | } |
148 | else | 148 | else |
149 | { | 149 | { |
150 | category = LLParcel::getCategoryFromString(catstring.c_str()); | 150 | category = LLParcel::getCategoryFromString(catstring); |
151 | } | 151 | } |
152 | 152 | ||
153 | BOOL pg_only = !gSavedSettings.getBOOL("ShowMatureSims") | 153 | BOOL pg_only = !gSavedSettings.getBOOL("ShowMatureSims") |
@@ -160,10 +160,10 @@ void LLPanelDirPlaces::initialQuery() | |||
160 | { | 160 | { |
161 | // All Linden locations in PG/Mature sims, any name. | 161 | // All Linden locations in PG/Mature sims, any name. |
162 | const BOOL pg_only = FALSE; | 162 | const BOOL pg_only = FALSE; |
163 | queryCore("", LLParcel::C_LINDEN, pg_only); | 163 | queryCore(LLStringUtil::null, LLParcel::C_LINDEN, pg_only); |
164 | } | 164 | } |
165 | 165 | ||
166 | void LLPanelDirPlaces::queryCore(const LLString& name, | 166 | void LLPanelDirPlaces::queryCore(const std::string& name, |
167 | S32 category, | 167 | S32 category, |
168 | BOOL pg_only) | 168 | BOOL pg_only) |
169 | { | 169 | { |