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/llvograss.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 '')
-rw-r--r-- | linden/indra/newview/llvograss.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/linden/indra/newview/llvograss.cpp b/linden/indra/newview/llvograss.cpp index a0e98ce..a028a63 100644 --- a/linden/indra/newview/llvograss.cpp +++ b/linden/indra/newview/llvograss.cpp | |||
@@ -172,7 +172,7 @@ void LLVOGrass::initClass() | |||
172 | 172 | ||
173 | if (newGrass->mTextureID.isNull()) | 173 | if (newGrass->mTextureID.isNull()) |
174 | { | 174 | { |
175 | LLString textureName; | 175 | std::string textureName; |
176 | 176 | ||
177 | static LLStdStringHandle texture_name_string = LLXmlTree::addAttributeString("texture_name"); | 177 | static LLStdStringHandle texture_name_string = LLXmlTree::addAttributeString("texture_name"); |
178 | success &= grass_def->getFastAttributeString(texture_name_string, textureName); | 178 | success &= grass_def->getFastAttributeString(texture_name_string, textureName); |
@@ -203,7 +203,7 @@ void LLVOGrass::initClass() | |||
203 | 203 | ||
204 | if (!success) | 204 | if (!success) |
205 | { | 205 | { |
206 | LLString name; | 206 | std::string name; |
207 | static LLStdStringHandle name_string = LLXmlTree::addAttributeString("name"); | 207 | static LLStdStringHandle name_string = LLXmlTree::addAttributeString("name"); |
208 | grass_def->getFastAttributeString(name_string, name); | 208 | grass_def->getFastAttributeString(name_string, name); |
209 | llwarns << "Incomplete definition of grass " << name << llendl; | 209 | llwarns << "Incomplete definition of grass " << name << llendl; |
@@ -211,22 +211,20 @@ void LLVOGrass::initClass() | |||
211 | } | 211 | } |
212 | 212 | ||
213 | BOOL have_all_grass = TRUE; | 213 | BOOL have_all_grass = TRUE; |
214 | LLString err; | 214 | std::string err; |
215 | char buffer[10]; /* Flawfinder: ignore */ | ||
216 | 215 | ||
217 | for (S32 i=0;i<sMaxGrassSpecies;++i) | 216 | for (S32 i=0;i<sMaxGrassSpecies;++i) |
218 | { | 217 | { |
219 | if (!sSpeciesTable.count(i)) | 218 | if (!sSpeciesTable.count(i)) |
220 | { | 219 | { |
221 | snprintf(buffer,10," %d",i); /* Flawfinder: ignore */ | 220 | err.append(llformat(" %d",i)); |
222 | err.append(buffer); | ||
223 | have_all_grass = FALSE; | 221 | have_all_grass = FALSE; |
224 | } | 222 | } |
225 | } | 223 | } |
226 | 224 | ||
227 | if (!have_all_grass) | 225 | if (!have_all_grass) |
228 | { | 226 | { |
229 | LLStringBase<char>::format_map_t args; | 227 | LLStringUtil::format_map_t args; |
230 | args["[SPECIES]"] = err; | 228 | args["[SPECIES]"] = err; |
231 | gViewerWindow->alertXml("ErrorUndefinedGrasses", args, alert_done ); | 229 | gViewerWindow->alertXml("ErrorUndefinedGrasses", args, alert_done ); |
232 | } | 230 | } |