aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterbump.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/newview/llfloaterbump.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/newview/llfloaterbump.cpp')
-rw-r--r--linden/indra/newview/llfloaterbump.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/linden/indra/newview/llfloaterbump.cpp b/linden/indra/newview/llfloaterbump.cpp
index 61d1b81..616f746 100644
--- a/linden/indra/newview/llfloaterbump.cpp
+++ b/linden/indra/newview/llfloaterbump.cpp
@@ -84,7 +84,7 @@ void LLFloaterBump::show(void *contents)
84 84
85 if (gMeanCollisionList.empty()) 85 if (gMeanCollisionList.empty())
86 { 86 {
87 LLString none_detected = sInstance->getString("none_detected"); 87 std::string none_detected = sInstance->getString("none_detected");
88 LLSD row; 88 LLSD row;
89 row["columns"][0]["value"] = none_detected; 89 row["columns"][0]["value"] = none_detected;
90 row["columns"][0]["font"] = "SansSerifBold"; 90 row["columns"][0]["font"] = "SansSerifBold";
@@ -110,8 +110,7 @@ void LLFloaterBump::add(LLScrollListCtrl* list, LLMeanCollisionData* mcd)
110 new LLFloaterBump(); 110 new LLFloaterBump();
111 } 111 }
112 112
113 if (!mcd->mFirstName[0] 113 if (mcd->mFirstName.empty() || list->getItemCount() >= 20)
114 || list->getItemCount() >= 20)
115 { 114 {
116 return; 115 return;
117 } 116 }
@@ -123,9 +122,9 @@ void LLFloaterBump::add(LLScrollListCtrl* list, LLMeanCollisionData* mcd)
123 // it's daylight savings time there. 122 // it's daylight savings time there.
124 timep = utc_to_pacific_time(mcd->mTime, gPacificDaylightTime); 123 timep = utc_to_pacific_time(mcd->mTime, gPacificDaylightTime);
125 124
126 LLString time = llformat("[%d:%02d]", timep->tm_hour, timep->tm_min); 125 std::string time = llformat("[%d:%02d]", timep->tm_hour, timep->tm_min);
127 126
128 LLString action; 127 std::string action;
129 switch(mcd->mType) 128 switch(mcd->mType)
130 { 129 {
131 case MEAN_BUMP: 130 case MEAN_BUMP: