summaryrefslogtreecommitdiff
path: root/indra/newview/llsceneview.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2024-06-09 00:48:45 +0300
committerGitHub <noreply@github.com>2024-06-09 00:48:45 +0300
commit22d3ea34f29bc11f3e5bfe491f4bc0895e1d4653 (patch)
tree6c8e4f460f9d0ab2684e21a63f9ecd921eb45024 /indra/newview/llsceneview.cpp
parent69b48fd13adb129bfa56eaf81309e10eaa16a023 (diff)
parent395c1c6adf1ecb669f805d5244772b080c077cce (diff)
Merge pull request #1613 from Ansariel/DRTVWR-600-maint-A
Fix/re-enable MSVC compiler warnings
Diffstat (limited to 'indra/newview/llsceneview.cpp')
-rw-r--r--indra/newview/llsceneview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/indra/newview/llsceneview.cpp b/indra/newview/llsceneview.cpp
index 26859800fd..6a2470f83a 100644
--- a/indra/newview/llsceneview.cpp
+++ b/indra/newview/llsceneview.cpp
@@ -194,13 +194,13 @@ void LLSceneView::draw()
F32 size_range = size_domain[1]-size_domain[0];
- U32 count = size[idx].size();
+ auto count = size[idx].size();
F32 total = 0.f;
gGL.begin(LLRender::LINE_STRIP);
- for (U32 i = 0; i < count; ++i)
+ for (size_t i = 0; i < count; ++i)
{
F32 rad = size[idx][i];
total += rad;
@@ -260,11 +260,11 @@ void LLSceneView::draw()
U32 triangle_range = tri_domain[1]-tri_domain[0];
- U32 count = triangles[idx].size();
+ auto count = triangles[idx].size();
gGL.begin(LLRender::LINE_STRIP);
//plot triangles
- for (U32 i = 0; i < count; ++i)
+ for (size_t i = 0; i < count; ++i)
{
U32 tri_count = triangles[idx][i];
F32 y = (F32) (tri_count-tri_domain[0])/triangle_range*tri_rect.getHeight()+tri_rect.mBottom;
@@ -325,13 +325,13 @@ void LLSceneView::draw()
F32 cost_range = streaming_domain[1]-streaming_domain[0];
- U32 count = streaming_cost[idx].size();
+ auto count = streaming_cost[idx].size();
F32 total = 0;
gGL.begin(LLRender::LINE_STRIP);
//plot triangles
- for (U32 i = 0; i < count; ++i)
+ for (size_t i = 0; i < count; ++i)
{
F32 sc = streaming_cost[idx][i];
total += sc;
@@ -391,13 +391,13 @@ void LLSceneView::draw()
F32 cost_range = physics_domain[1]-physics_domain[0];
- U32 count = physics_cost[idx].size();
+ auto count = physics_cost[idx].size();
F32 total = 0;
gGL.begin(LLRender::LINE_STRIP);
//plot triangles
- for (U32 i = 0; i < count; ++i)
+ for (size_t i = 0; i < count; ++i)
{
F32 pc = physics_cost[idx][i];
total += pc;