aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterbump.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterbump.cpp')
-rw-r--r--linden/indra/newview/llfloaterbump.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/linden/indra/newview/llfloaterbump.cpp b/linden/indra/newview/llfloaterbump.cpp
index 4508702..d340112 100644
--- a/linden/indra/newview/llfloaterbump.cpp
+++ b/linden/indra/newview/llfloaterbump.cpp
@@ -37,13 +37,12 @@
37#include "llscrolllistctrl.h" 37#include "llscrolllistctrl.h"
38 38
39#include "llvieweruictrlfactory.h" 39#include "llvieweruictrlfactory.h"
40#include "llviewermessage.h"
40#include "llappviewer.h" // gPacificDaylightTime 41#include "llappviewer.h" // gPacificDaylightTime
41 42
42///---------------------------------------------------------------------------- 43///----------------------------------------------------------------------------
43/// Local function declarations, constants, enums, and typedefs 44/// Local function declarations, constants, enums, and typedefs
44///---------------------------------------------------------------------------- 45///----------------------------------------------------------------------------
45extern LLLinkedList<LLMeanCollisionData> gMeanCollisionList;
46
47LLFloaterBump* LLFloaterBump::sInstance = NULL; 46LLFloaterBump* LLFloaterBump::sInstance = NULL;
48 47
49///---------------------------------------------------------------------------- 48///----------------------------------------------------------------------------
@@ -83,9 +82,9 @@ void LLFloaterBump::show(void *contents)
83 if (!list) return; 82 if (!list) return;
84 list->deleteAllItems(); 83 list->deleteAllItems();
85 84
86 if (gMeanCollisionList.isEmpty()) 85 if (gMeanCollisionList.empty())
87 { 86 {
88 LLString none_detected = sInstance->childGetText("none_detected"); 87 LLString none_detected = sInstance->getString("none_detected");
89 LLSD row; 88 LLSD row;
90 row["columns"][0]["value"] = none_detected; 89 row["columns"][0]["value"] = none_detected;
91 row["columns"][0]["font"] = "SansSerifBold"; 90 row["columns"][0]["font"] = "SansSerifBold";
@@ -93,10 +92,10 @@ void LLFloaterBump::show(void *contents)
93 } 92 }
94 else 93 else
95 { 94 {
96 for (LLMeanCollisionData* mcd = gMeanCollisionList.getFirstData(); 95 for (mean_collision_list_t::iterator iter = gMeanCollisionList.begin();
97 mcd; 96 iter != gMeanCollisionList.end(); ++iter)
98 mcd = gMeanCollisionList.getNextData())
99 { 97 {
98 LLMeanCollisionData *mcd = *iter;
100 LLFloaterBump::add(list, mcd); 99 LLFloaterBump::add(list, mcd);
101 } 100 }
102 } 101 }
@@ -151,7 +150,7 @@ void LLFloaterBump::add(LLScrollListCtrl* list, LLMeanCollisionData* mcd)
151 } 150 }
152 151
153 // All above action strings are in XML file 152 // All above action strings are in XML file
154 LLUIString text = sInstance->childGetText(action); 153 LLUIString text = sInstance->getUIString(action);
155 text.setArg("[TIME]", time); 154 text.setArg("[TIME]", time);
156 text.setArg("[FIRST]", mcd->mFirstName); 155 text.setArg("[FIRST]", mcd->mFirstName);
157 text.setArg("[LAST]", mcd->mLastName); 156 text.setArg("[LAST]", mcd->mLastName);