mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
Bug 1347963 - part 0 - use global qualification for GuardObjects.h macros; r=erahm
These macros can be used in cases where the `mozilla` namespace might not refer to the toplevel `mozilla` namespace that was intended. To ensure that the macros always refer to the `mozilla` namespace in the global namespace, use the appropriate qualification.
This commit is contained in:
parent
20abff2d5a
commit
fd24d774c3
@ -134,21 +134,21 @@ public:
|
||||
|
||||
#ifdef DEBUG
|
||||
# define MOZ_DECL_USE_GUARD_OBJECT_NOTIFIER \
|
||||
mozilla::detail::GuardObjectNotificationReceiver _mCheckNotUsedAsTemporary;
|
||||
::mozilla::detail::GuardObjectNotificationReceiver _mCheckNotUsedAsTemporary;
|
||||
# define MOZ_GUARD_OBJECT_NOTIFIER_PARAM \
|
||||
, mozilla::detail::GuardObjectNotifier&& _notifier = \
|
||||
mozilla::detail::GuardObjectNotifier()
|
||||
, ::mozilla::detail::GuardObjectNotifier&& _notifier = \
|
||||
::mozilla::detail::GuardObjectNotifier()
|
||||
# define MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM \
|
||||
mozilla::detail::GuardObjectNotifier&& _notifier = \
|
||||
mozilla::detail::GuardObjectNotifier()
|
||||
::mozilla::detail::GuardObjectNotifier&& _notifier = \
|
||||
::mozilla::detail::GuardObjectNotifier()
|
||||
# define MOZ_GUARD_OBJECT_NOTIFIER_PARAM_IN_IMPL \
|
||||
, mozilla::detail::GuardObjectNotifier&& _notifier
|
||||
, ::mozilla::detail::GuardObjectNotifier&& _notifier
|
||||
# define MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_IN_IMPL \
|
||||
mozilla::detail::GuardObjectNotifier&& _notifier
|
||||
::mozilla::detail::GuardObjectNotifier&& _notifier
|
||||
# define MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT \
|
||||
, mozilla::Move(_notifier)
|
||||
, ::mozilla::Move(_notifier)
|
||||
# define MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT \
|
||||
mozilla::Move(_notifier)
|
||||
::mozilla::Move(_notifier)
|
||||
# define MOZ_GUARD_OBJECT_NOTIFIER_INIT \
|
||||
do { _mCheckNotUsedAsTemporary.init(_notifier); } while (0)
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user