Kaynağa Gözat

Fixed C4127: conditional expression is constant.

Branimir Karadžić 11 yıl önce
ebeveyn
işleme
93eeca2117
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      3rdparty/ocornut-imgui/imgui.cpp

+ 2 - 2
3rdparty/ocornut-imgui/imgui.cpp

@@ -1851,7 +1851,7 @@ static void LogText(const ImVec2& ref_pos, const char* text, const char* text_en
     if (g.LogStartDepth > window->DC.TreeDepth)  // Re-adjust padding if we have popped out of our starting depth
     if (g.LogStartDepth > window->DC.TreeDepth)  // Re-adjust padding if we have popped out of our starting depth
         g.LogStartDepth = window->DC.TreeDepth;
         g.LogStartDepth = window->DC.TreeDepth;
     const int tree_depth = (window->DC.TreeDepth - g.LogStartDepth);
     const int tree_depth = (window->DC.TreeDepth - g.LogStartDepth);
-    while (true)
+    for (;;)
     {
     {
         // Split the string. Each new line (after a '\n') is followed by spacing corresponding to the current depth of our log entry.
         // Split the string. Each new line (after a '\n') is followed by spacing corresponding to the current depth of our log entry.
         const char* line_end = text_remaining;
         const char* line_end = text_remaining;
@@ -7724,7 +7724,7 @@ struct ExampleAppConsole
                 {
                 {
                     // Multiple matches. Complete as much as we can, so inputing "C" will complete to "CL" and display "CLEAR" and "CLASSIFY"
                     // Multiple matches. Complete as much as we can, so inputing "C" will complete to "CL" and display "CLEAR" and "CLASSIFY"
                     int match_len = (int)(word_end - word_start);
                     int match_len = (int)(word_end - word_start);
-                    while (true)
+                    for (;;)
                     {
                     {
                         int c = 0;
                         int c = 0;
                         bool all_candidates_matches = true;
                         bool all_candidates_matches = true;