Bug 1251936 - followup - add explicit to some Windows-only IPC classes on a CLOSED TREE; r=bustage
authorNathan Froyd <froydnj@mozilla.com>
Fri, 23 Dec 2016 10:22:58 -0500
changeset 453595 806029a2c31dc314b01911b22c75702597a160e9
parent 453594 47d317cfa2672e3e843da7a369072590460e96c6
child 453596 39a2a96f6cda75c9d8a371699ecf654fb9357e62
push id39711
push userdmitchell@mozilla.com
push dateFri, 23 Dec 2016 21:59:47 +0000
reviewersbustage
bugs1251936
milestone53.0a1
Bug 1251936 - followup - add explicit to some Windows-only IPC classes on a CLOSED TREE; r=bustage
ipc/glue/Neutering.h
--- a/ipc/glue/Neutering.h
+++ b/ipc/glue/Neutering.h
@@ -44,28 +44,28 @@ private:
  * This class is analagous to MutexAutoUnlock for Mutex; it is an RAII class
  * that is to be instantiated within a NeuteredWindowRegion, thus temporarily
  * disabling neutering for the remainder of its enclosing block.
  * @see NeuteredWindowRegion
  */
 class MOZ_RAII DeneuteredWindowRegion
 {
 public:
-  DeneuteredWindowRegion(MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM);
+  explicit DeneuteredWindowRegion(MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM);
   ~DeneuteredWindowRegion();
 
 private:
   MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER
   bool mReneuter;
 };
 
 class MOZ_RAII SuppressedNeuteringRegion
 {
 public:
-  SuppressedNeuteringRegion(MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM);
+  explicit SuppressedNeuteringRegion(MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM);
   ~SuppressedNeuteringRegion();
 
   static inline bool IsNeuteringSuppressed() { return sSuppressNeutering; }
 
 private:
   MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER
   bool mReenable;