aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/test/llinventoryparcel_tut.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/test/llinventoryparcel_tut.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-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/test/llinventoryparcel_tut.cpp')
-rw-r--r--linden/indra/test/llinventoryparcel_tut.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/test/llinventoryparcel_tut.cpp b/linden/indra/test/llinventoryparcel_tut.cpp
index 17c7244..8c30c38 100644
--- a/linden/indra/test/llinventoryparcel_tut.cpp
+++ b/linden/indra/test/llinventoryparcel_tut.cpp
@@ -51,22 +51,22 @@ namespace tut
51 { 51 {
52 for (S32 i=0; i<LLParcel::C_COUNT; ++i) 52 for (S32 i=0; i<LLParcel::C_COUNT; ++i)
53 { 53 {
54 const char *catstring = LLParcel::getCategoryString(LLParcel::ECategory(i)); 54 const std::string& catstring = LLParcel::getCategoryString(LLParcel::ECategory(i));
55 ensure("LLParcel::getCategoryString(i)", 55 ensure("LLParcel::getCategoryString(i)",
56 NULL != catstring); 56 !catstring.empty());
57 57
58 const char *catuistring = LLParcel::getCategoryUIString(LLParcel::ECategory(i)); 58 const std::string& catuistring = LLParcel::getCategoryUIString(LLParcel::ECategory(i));
59 ensure("LLParcel::getCategoryUIString(i)", 59 ensure("LLParcel::getCategoryUIString(i)",
60 NULL != catuistring); 60 !catuistring.empty());
61 61
62 ensure_equals("LLParcel::ECategory mapping of string back to enum", LLParcel::getCategoryFromString(catstring), i); 62 ensure_equals("LLParcel::ECategory mapping of string back to enum", LLParcel::getCategoryFromString(catstring), i);
63 ensure_equals("LLParcel::ECategory mapping of uistring back to enum", LLParcel::getCategoryFromUIString(catuistring), i); 63 ensure_equals("LLParcel::ECategory mapping of uistring back to enum", LLParcel::getCategoryFromUIString(catuistring), i);
64 } 64 }
65 65
66 // test the C_ANY case, which has to work for UI strings 66 // test the C_ANY case, which has to work for UI strings
67 const char *catuistring = LLParcel::getCategoryUIString(LLParcel::C_ANY); 67 const std::string& catuistring = LLParcel::getCategoryUIString(LLParcel::C_ANY);
68 ensure("LLParcel::getCategoryUIString(C_ANY)", 68 ensure("LLParcel::getCategoryUIString(C_ANY)",
69 NULL != catuistring); 69 !catuistring.empty());
70 70
71 ensure_equals("LLParcel::ECategory mapping of uistring back to enum", LLParcel::getCategoryFromUIString(catuistring), LLParcel::C_ANY); 71 ensure_equals("LLParcel::ECategory mapping of uistring back to enum", LLParcel::getCategoryFromUIString(catuistring), LLParcel::C_ANY);
72 } 72 }