Bug 1317973 - Replace integer literals which are cast to bool. r=nical
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 16 Nov 2016 15:24:44 +0100
changeset 324914 d2bfabe4d0150f2c168f1c5830111a1753124f9c
parent 324913 8b1670f7a0b4b1103b3d88be98c61d0d7a9ba01d
child 324915 8023e756661aad0e6d21c91229b8804c0714f006
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewersnical
bugs1317973
milestone53.0a1
Bug 1317973 - Replace integer literals which are cast to bool. r=nical MozReview-Commit-ID: JVWJPYkD2B2
widget/xremoteclient/XRemoteClient.cpp
--- a/widget/xremoteclient/XRemoteClient.cpp
+++ b/widget/xremoteclient/XRemoteClient.cpp
@@ -352,17 +352,17 @@ XRemoteClient::GetLock(Window aWindow, b
     if (!locked && !NS_FAILED(rv)) {
       /* We tried to grab the lock this time, and failed because someone
 	 else is holding it already.  So, wait for a PropertyDelete event
 	 to come in, and try again. */
       MOZ_LOG(sRemoteLm, LogLevel::Debug, 
 	     ("window 0x%x is locked by %s; waiting...\n",
 	      (unsigned int) aWindow, data));
       waited = True;
-      while (1) {
+      while (true) {
 	XEvent event;
 	int select_retval;
 	fd_set select_set;
 	struct timeval delay;
 	delay.tv_sec = 10;
 	delay.tv_usec = 0;
 
 	FD_ZERO(&select_set);