diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llfloaterinspect.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2 meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz |
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llfloaterinspect.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterinspect.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/linden/indra/newview/llfloaterinspect.cpp b/linden/indra/newview/llfloaterinspect.cpp index 70b7a29..cdca428 100644 --- a/linden/indra/newview/llfloaterinspect.cpp +++ b/linden/indra/newview/llfloaterinspect.cpp | |||
@@ -211,18 +211,13 @@ void LLFloaterInspect::refresh() | |||
211 | { | 211 | { |
212 | LLSelectNode* obj = *iter; | 212 | LLSelectNode* obj = *iter; |
213 | LLSD row; | 213 | LLSD row; |
214 | char owner_first_name[MAX_STRING], owner_last_name[MAX_STRING]; | ||
215 | char creator_first_name[MAX_STRING], creator_last_name[MAX_STRING]; | ||
216 | char time[MAX_STRING]; | 214 | char time[MAX_STRING]; |
217 | std::ostringstream owner_name, creator_name, date; | 215 | std::string owner_name, creator_name; |
218 | time_t timestamp = (time_t) (obj->mCreationDate/1000000); | 216 | time_t timestamp = (time_t) (obj->mCreationDate/1000000); |
219 | LLString::copy(time, ctime(×tamp), MAX_STRING); | 217 | LLString::copy(time, ctime(×tamp), MAX_STRING); |
220 | time[24] = '\0'; | 218 | time[24] = '\0'; |
221 | date << obj->mCreationDate; | 219 | gCacheName->getFullName(obj->mPermissions->getOwner(), owner_name); |
222 | gCacheName->getName(obj->mPermissions->getOwner(), owner_first_name, owner_last_name); | 220 | gCacheName->getFullName(obj->mPermissions->getCreator(), creator_name); |
223 | owner_name << owner_first_name << " " << owner_last_name; | ||
224 | gCacheName->getName(obj->mPermissions->getCreator(), creator_first_name, creator_last_name); | ||
225 | creator_name << creator_first_name << " " << creator_last_name; | ||
226 | row["id"] = obj->getObject()->getID(); | 221 | row["id"] = obj->getObject()->getID(); |
227 | row["columns"][0]["column"] = "object_name"; | 222 | row["columns"][0]["column"] = "object_name"; |
228 | row["columns"][0]["type"] = "text"; | 223 | row["columns"][0]["type"] = "text"; |
@@ -238,10 +233,10 @@ void LLFloaterInspect::refresh() | |||
238 | } | 233 | } |
239 | row["columns"][1]["column"] = "owner_name"; | 234 | row["columns"][1]["column"] = "owner_name"; |
240 | row["columns"][1]["type"] = "text"; | 235 | row["columns"][1]["type"] = "text"; |
241 | row["columns"][1]["value"] = owner_name.str().c_str(); | 236 | row["columns"][1]["value"] = owner_name; |
242 | row["columns"][2]["column"] = "creator_name"; | 237 | row["columns"][2]["column"] = "creator_name"; |
243 | row["columns"][2]["type"] = "text"; | 238 | row["columns"][2]["type"] = "text"; |
244 | row["columns"][2]["value"] = creator_name.str().c_str(); | 239 | row["columns"][2]["value"] = creator_name; |
245 | row["columns"][3]["column"] = "creation_date"; | 240 | row["columns"][3]["column"] = "creation_date"; |
246 | row["columns"][3]["type"] = "text"; | 241 | row["columns"][3]["type"] = "text"; |
247 | row["columns"][3]["value"] = time; | 242 | row["columns"][3]["value"] = time; |