Bug 1629431 - Use bool true instead of int 1. r=smaug
authorAbdallahAfify <AbdallahAfify>
Fri, 17 Apr 2020 09:57:24 +0000
changeset 524578 063fb58eb4c2fe6e7680e08a8d9300ee2772e9a7
parent 524577 54789c4c8fcbfd4f1fc4827ae2c10791815ad39a
child 524579 e187ef437b760862a1dcc5285570cf3e5ae38adc
push id37323
push userdluca@mozilla.com
push dateFri, 17 Apr 2020 16:25:55 +0000
treeherdermozilla-central@b4b1d6f91ef0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1629431
milestone77.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1629431 - Use bool true instead of int 1. r=smaug Differential Revision: https://phabricator.services.mozilla.com/D71244
xpfe/appshell/AppWindow.cpp
--- a/xpfe/appshell/AppWindow.cpp
+++ b/xpfe/appshell/AppWindow.cpp
@@ -1605,17 +1605,17 @@ void AppWindow::StaggerPosition(int32_t&
 
           /* loop around again,
              but it's time to give up once we've covered the screen.
              there's a potential infinite loop with lots of windows. */
           keepTrying = bouncedX < 2 || bouncedY == 0;
           break;
         }
       }
-    } while (1);
+    } while (true);
   } while (keepTrying);
 }
 
 void AppWindow::SyncAttributesToWidget() {
   nsCOMPtr<dom::Element> windowElement = GetWindowDOMElement();
   if (!windowElement) return;
 
   MOZ_DIAGNOSTIC_ASSERT(mWindow, "No widget on SyncAttributesToWidget?");