Bug 1183786 - Part 4: Drop unnecessary '!!' boolification. r=tn
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 03 Aug 2015 17:13:08 -0700
changeset 287678 5f4299f601f356bae060a5c661b316f3ada13c80
parent 287677 db090fd8b881f2ecc5a194e3a42d6c2f7880f03c
child 287679 0866912ffc06bf7f32a28bedc590391c6ca86b83
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstn
bugs1183786
milestone42.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 1183786 - Part 4: Drop unnecessary '!!' boolification. r=tn
layout/base/nsPresContext.cpp
--- a/layout/base/nsPresContext.cpp
+++ b/layout/base/nsPresContext.cpp
@@ -1571,17 +1571,17 @@ nsPresContext::ScreenSizeInchesForFontIn
 
   return deviceSizeInches;
 }
 
 void
 nsPresContext::SetContainer(nsIDocShell* aDocShell)
 {
   if (aDocShell) {
-    NS_ASSERTION(!(!!mContainer && mNeedsPrefUpdate),
+    NS_ASSERTION(!(mContainer && mNeedsPrefUpdate),
                  "Should only need pref update if mContainer is null.");
     mContainer = static_cast<nsDocShell*>(aDocShell);
     if (mNeedsPrefUpdate) {
       if (!mPrefChangedTimer) {
         mPrefChangedTimer = CreateTimer(PrefChangedUpdateTimerCallback, 0);
       }
       mNeedsPrefUpdate = false;
     }