Bug 727435 - Implementing MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT. r=Waldo
authorDavid Rajchenbach-Teller <dteller@mozilla.com>
Thu, 16 Feb 2012 01:17:02 +0100
changeset 89881 79e5d61b3d594f17368aa2619da6a9a7b9417713
parent 89880 534b476701be72e3f2ec9ea1b5f38ba2d13b224b
child 89882 18208d0bb8d1a9c07f945859ffd517cdfefcba14
push idunknown
push userunknown
push dateunknown
reviewersWaldo
bugs727435
milestone13.0a1
Bug 727435 - Implementing MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT. r=Waldo
mfbt/GuardObjects.h
--- a/mfbt/GuardObjects.h
+++ b/mfbt/GuardObjects.h
@@ -158,22 +158,25 @@ class MOZ_EXPORT_API(GuardObjectNotifica
          mozilla::detail::GuardObjectNotifier()
 #  define MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM \
      const mozilla::detail::GuardObjectNotifier& _notifier = \
          mozilla::detail::GuardObjectNotifier()
 #  define MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL \
      , const mozilla::detail::GuardObjectNotifier& _notifier
 #  define MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT \
      , _notifier
+#  define MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT \
+       _notifier
 #  define MOZ_GUARD_OBJECT_NOTIFIER_INIT \
      do { _mCheckNotUsedAsTemporary.init(_notifier); } while (0)
 #else
 #  define MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER
 #  define MOZ_GUARD_OBJECT_NOTIFIER_PARAM
 #  define MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM
 #  define MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL
+#  define MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT
 #  define MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT
 #  define MOZ_GUARD_OBJECT_NOTIFIER_INIT do { } while (0)
 #endif
 
 #endif /* __cplusplus */
 
 #endif /* mozilla_GuardObjects_h */