diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llfloaterlandholdings.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterlandholdings.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloaterlandholdings.cpp b/linden/indra/newview/llfloaterlandholdings.cpp index e34e84c..3bdfdd9 100644 --- a/linden/indra/newview/llfloaterlandholdings.cpp +++ b/linden/indra/newview/llfloaterlandholdings.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2003-2007, Linden Research, Inc. | 5 | * Copyright (c) 2003-2007, Linden Research, Inc. |
6 | * | 6 | * |
7 | * Second Life Viewer Source Code | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | 8 | * The source code in this file ("Source Code") is provided by Linden Lab |
8 | * to you under the terms of the GNU General Public License, version 2.0 | 9 | * to you under the terms of the GNU General Public License, version 2.0 |
9 | * ("GPL"), unless you have obtained a separate licensing agreement | 10 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -207,20 +208,20 @@ void LLFloaterLandHoldings::processPlacesReply(LLMessageSystem* msg, void**) | |||
207 | S32 region_y = llround(global_y) % REGION_WIDTH_UNITS; | 208 | S32 region_y = llround(global_y) % REGION_WIDTH_UNITS; |
208 | 209 | ||
209 | char location[MAX_STRING]; /* Flawfinder: ignore */ | 210 | char location[MAX_STRING]; /* Flawfinder: ignore */ |
210 | snprintf(location, MAX_STRING, "%s (%d, %d)", sim_name, region_x, region_y); /* Flawfinder: ignore */ | 211 | snprintf(location, MAX_STRING, "%s (%d, %d)", sim_name, region_x, region_y); /* Flawfinder: ignore */ |
211 | 212 | ||
212 | char area[MAX_STRING]; /* Flawfinder: ignore */ | 213 | char area[MAX_STRING]; /* Flawfinder: ignore */ |
213 | if(billable_area == actual_area) | 214 | if(billable_area == actual_area) |
214 | { | 215 | { |
215 | snprintf(area, MAX_STRING, "%d", billable_area); /* Flawfinder: ignore */ | 216 | snprintf(area, MAX_STRING, "%d", billable_area); /* Flawfinder: ignore */ |
216 | } | 217 | } |
217 | else | 218 | else |
218 | { | 219 | { |
219 | snprintf(area, MAX_STRING, "%d / %d", billable_area, actual_area); /* Flawfinder: ignore */ | 220 | snprintf(area, MAX_STRING, "%d / %d", billable_area, actual_area); /* Flawfinder: ignore */ |
220 | } | 221 | } |
221 | 222 | ||
222 | char hidden[MAX_STRING]; /* Flawfinder: ignore */ | 223 | char hidden[MAX_STRING]; /* Flawfinder: ignore */ |
223 | snprintf(hidden, MAX_STRING, "%f %f", global_x, global_y); /* Flawfinder: ignore */ | 224 | snprintf(hidden, MAX_STRING, "%f %f", global_x, global_y); /* Flawfinder: ignore */ |
224 | 225 | ||
225 | LLSD element; | 226 | LLSD element; |
226 | element["columns"][0]["column"] = "name"; | 227 | element["columns"][0]["column"] = "name"; |
@@ -313,12 +314,12 @@ void LLFloaterLandHoldings::refreshAggregates() | |||
313 | 314 | ||
314 | char buffer[MAX_STRING]; /* Flawfinder: ignore */ | 315 | char buffer[MAX_STRING]; /* Flawfinder: ignore */ |
315 | 316 | ||
316 | snprintf(buffer, MAX_STRING, "%d sq. meters", allowed_area); /* Flawfinder: ignore */ | 317 | snprintf(buffer, MAX_STRING, "%d sq. meters", allowed_area); /* Flawfinder: ignore */ |
317 | childSetValue("allowed_text", LLSD(buffer)); | 318 | childSetValue("allowed_text", LLSD(buffer)); |
318 | 319 | ||
319 | snprintf(buffer, MAX_STRING, "%d sq. meters", current_area); /* Flawfinder: ignore */ | 320 | snprintf(buffer, MAX_STRING, "%d sq. meters", current_area); /* Flawfinder: ignore */ |
320 | childSetValue("current_text", LLSD(buffer)); | 321 | childSetValue("current_text", LLSD(buffer)); |
321 | 322 | ||
322 | snprintf(buffer, MAX_STRING, "%d sq. meters", available_area); /* Flawfinder: ignore */ | 323 | snprintf(buffer, MAX_STRING, "%d sq. meters", available_area); /* Flawfinder: ignore */ |
323 | childSetValue("available_text", LLSD(buffer)); | 324 | childSetValue("available_text", LLSD(buffer)); |
324 | } | 325 | } |