diff options
Diffstat (limited to 'linden/indra/newview/llurlwhitelist.cpp')
-rw-r--r-- | linden/indra/newview/llurlwhitelist.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/linden/indra/newview/llurlwhitelist.cpp b/linden/indra/newview/llurlwhitelist.cpp index ebd6ccd..a3d401b 100644 --- a/linden/indra/newview/llurlwhitelist.cpp +++ b/linden/indra/newview/llurlwhitelist.cpp | |||
@@ -89,10 +89,10 @@ bool LLUrlWhiteList::load () | |||
89 | clear (); | 89 | clear (); |
90 | 90 | ||
91 | // build filename for each user | 91 | // build filename for each user |
92 | LLString resolvedFilename = gDirUtilp->getExpandedFilename ( LL_PATH_PER_SL_ACCOUNT, mFilename.c_str () ); | 92 | std::string resolvedFilename = gDirUtilp->getExpandedFilename ( LL_PATH_PER_SL_ACCOUNT, mFilename ); |
93 | 93 | ||
94 | // open a file for reading | 94 | // open a file for reading |
95 | llifstream file ( resolvedFilename.c_str () ); | 95 | llifstream file ( resolvedFilename ); |
96 | if ( file.is_open () ) | 96 | if ( file.is_open () ) |
97 | { | 97 | { |
98 | // add each line in the file to the list | 98 | // add each line in the file to the list |
@@ -118,10 +118,10 @@ bool LLUrlWhiteList::load () | |||
118 | bool LLUrlWhiteList::save () | 118 | bool LLUrlWhiteList::save () |
119 | { | 119 | { |
120 | // build filename for each user | 120 | // build filename for each user |
121 | LLString resolvedFilename = gDirUtilp->getExpandedFilename ( LL_PATH_PER_SL_ACCOUNT, mFilename.c_str () ); | 121 | std::string resolvedFilename = gDirUtilp->getExpandedFilename ( LL_PATH_PER_SL_ACCOUNT, mFilename ); |
122 | 122 | ||
123 | // open a file for writing | 123 | // open a file for writing |
124 | llofstream file ( resolvedFilename.c_str () ); | 124 | llofstream file ( resolvedFilename ); |
125 | if ( file.is_open () ) | 125 | if ( file.is_open () ) |
126 | { | 126 | { |
127 | // for each entry we have | 127 | // for each entry we have |
@@ -149,9 +149,9 @@ bool LLUrlWhiteList::clear () | |||
149 | return true; | 149 | return true; |
150 | } | 150 | } |
151 | 151 | ||
152 | LLString url_cleanup(LLString pattern) | 152 | std::string url_cleanup(std::string pattern) |
153 | { | 153 | { |
154 | LLString::trim(pattern); | 154 | LLStringUtil::trim(pattern); |
155 | S32 length = pattern.length(); | 155 | S32 length = pattern.length(); |
156 | S32 position = 0; | 156 | S32 position = 0; |
157 | std::string::reverse_iterator it = pattern.rbegin(); | 157 | std::string::reverse_iterator it = pattern.rbegin(); |
@@ -164,7 +164,7 @@ LLString url_cleanup(LLString pattern) | |||
164 | { | 164 | { |
165 | // found second to last '/' | 165 | // found second to last '/' |
166 | S32 desired_length = length - position; | 166 | S32 desired_length = length - position; |
167 | LLString::truncate(pattern, desired_length); | 167 | LLStringUtil::truncate(pattern, desired_length); |
168 | break; | 168 | break; |
169 | } | 169 | } |
170 | ++position; | 170 | ++position; |
@@ -174,9 +174,9 @@ LLString url_cleanup(LLString pattern) | |||
174 | 174 | ||
175 | /////////////////////////////////////////////////////////////////////////////// | 175 | /////////////////////////////////////////////////////////////////////////////// |
176 | // | 176 | // |
177 | bool LLUrlWhiteList::addItem ( const LLString& itemIn, bool saveAfterAdd ) | 177 | bool LLUrlWhiteList::addItem ( const std::string& itemIn, bool saveAfterAdd ) |
178 | { | 178 | { |
179 | LLString item = url_cleanup(itemIn); | 179 | std::string item = url_cleanup(itemIn); |
180 | 180 | ||
181 | mUrlList.push_back ( item ); | 181 | mUrlList.push_back ( item ); |
182 | 182 | ||
@@ -189,7 +189,7 @@ bool LLUrlWhiteList::addItem ( const LLString& itemIn, bool saveAfterAdd ) | |||
189 | 189 | ||
190 | /////////////////////////////////////////////////////////////////////////////// | 190 | /////////////////////////////////////////////////////////////////////////////// |
191 | // | 191 | // |
192 | bool LLUrlWhiteList::getFirst ( LLString& valueOut ) | 192 | bool LLUrlWhiteList::getFirst ( std::string& valueOut ) |
193 | { | 193 | { |
194 | if ( mUrlList.size () == 0 ) | 194 | if ( mUrlList.size () == 0 ) |
195 | return false; | 195 | return false; |
@@ -202,7 +202,7 @@ bool LLUrlWhiteList::getFirst ( LLString& valueOut ) | |||
202 | 202 | ||
203 | /////////////////////////////////////////////////////////////////////////////// | 203 | /////////////////////////////////////////////////////////////////////////////// |
204 | // | 204 | // |
205 | bool LLUrlWhiteList::getNext ( LLString& valueOut ) | 205 | bool LLUrlWhiteList::getNext ( std::string& valueOut ) |
206 | { | 206 | { |
207 | if ( mCurIndex >= mUrlList.size () ) | 207 | if ( mCurIndex >= mUrlList.size () ) |
208 | return false; | 208 | return false; |
@@ -214,7 +214,7 @@ bool LLUrlWhiteList::getNext ( LLString& valueOut ) | |||
214 | 214 | ||
215 | /////////////////////////////////////////////////////////////////////////////// | 215 | /////////////////////////////////////////////////////////////////////////////// |
216 | // | 216 | // |
217 | bool LLUrlWhiteList::containsMatch ( const LLString& patternIn ) | 217 | bool LLUrlWhiteList::containsMatch ( const std::string& patternIn ) |
218 | { | 218 | { |
219 | return false; | 219 | return false; |
220 | } | 220 | } |