Browse Source

DragScalarN, SliderScalarN, InputScalarN: Removed unnecessary string id after the integer PushID() calls.

omar 6 years ago
parent
commit
62084aac0f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      imgui_widgets.cpp

+ 3 - 3
imgui_widgets.cpp

@@ -1930,7 +1930,7 @@ bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* v, int
     for (int i = 0; i < components; i++)
     for (int i = 0; i < components; i++)
     {
     {
         PushID(i);
         PushID(i);
-        value_changed |= DragScalar("##v", data_type, v, v_speed, v_min, v_max, format, power);
+        value_changed |= DragScalar("", data_type, v, v_speed, v_min, v_max, format, power);
         SameLine(0, g.Style.ItemInnerSpacing.x);
         SameLine(0, g.Style.ItemInnerSpacing.x);
         PopID();
         PopID();
         PopItemWidth();
         PopItemWidth();
@@ -2367,7 +2367,7 @@ bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, i
     for (int i = 0; i < components; i++)
     for (int i = 0; i < components; i++)
     {
     {
         PushID(i);
         PushID(i);
-        value_changed |= SliderScalar("##v", data_type, v, v_min, v_max, format, power);
+        value_changed |= SliderScalar("", data_type, v, v_min, v_max, format, power);
         SameLine(0, g.Style.ItemInnerSpacing.x);
         SameLine(0, g.Style.ItemInnerSpacing.x);
         PopID();
         PopID();
         PopItemWidth();
         PopItemWidth();
@@ -2700,7 +2700,7 @@ bool ImGui::InputScalarN(const char* label, ImGuiDataType data_type, void* v, in
     for (int i = 0; i < components; i++)
     for (int i = 0; i < components; i++)
     {
     {
         PushID(i);
         PushID(i);
-        value_changed |= InputScalar("##v", data_type, v, step, step_fast, format, flags);
+        value_changed |= InputScalar("", data_type, v, step, step_fast, format, flags);
         SameLine(0, g.Style.ItemInnerSpacing.x);
         SameLine(0, g.Style.ItemInnerSpacing.x);
         PopID();
         PopID();
         PopItemWidth();
         PopItemWidth();