diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/lldebugmessagebox.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/lldebugmessagebox.cpp b/linden/indra/newview/lldebugmessagebox.cpp index e6c1bf1..af500da 100644 --- a/linden/indra/newview/lldebugmessagebox.cpp +++ b/linden/indra/newview/lldebugmessagebox.cpp | |||
@@ -4,6 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2002-2007, Linden Research, Inc. | 5 | * Copyright (c) 2002-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 |
@@ -210,14 +211,14 @@ void LLDebugVarMessageBox::draw() | |||
210 | switch(mVarType) | 211 | switch(mVarType) |
211 | { | 212 | { |
212 | case VAR_TYPE_F32: | 213 | case VAR_TYPE_F32: |
213 | snprintf(text, sizeof(text), "%.3f", *((F32*)mVarData)); /*Flawfinder: ignore*/ | 214 | snprintf(text, sizeof(text), "%.3f", *((F32*)mVarData)); /* Flawfinder: ignore */ |
214 | break; | 215 | break; |
215 | case VAR_TYPE_S32: | 216 | case VAR_TYPE_S32: |
216 | snprintf(text, sizeof(text), "%d", *((S32*)mVarData)); /*Flawfinder: ignore*/ | 217 | snprintf(text, sizeof(text), "%d", *((S32*)mVarData)); /* Flawfinder: ignore */ |
217 | break; | 218 | break; |
218 | case VAR_TYPE_VEC3: | 219 | case VAR_TYPE_VEC3: |
219 | LLVector3* vec_p = (LLVector3*)mVarData; | 220 | LLVector3* vec_p = (LLVector3*)mVarData; |
220 | snprintf(text, sizeof(text), "%.3f %.3f %.3f", vec_p->mV[VX], vec_p->mV[VY], vec_p->mV[VZ]); /*Flawfinder: ignore*/ | 221 | snprintf(text, sizeof(text), "%.3f %.3f %.3f", vec_p->mV[VX], vec_p->mV[VY], vec_p->mV[VZ]); /* Flawfinder: ignore */ |
221 | break; | 222 | break; |
222 | } | 223 | } |
223 | mText->setText(text); | 224 | mText->setText(text); |