From c751513c6bfffbd52c5c674869c75ab984e87d9b Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Mon, 2 Nov 2015 07:53:26 +0200 Subject: [PATCH] Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj --- accessible/ipc/ProxyAccessible.cpp | 256 +++++++++--------- caps/DomainPolicy.cpp | 2 +- chrome/nsChromeRegistryChrome.cpp | 2 +- docshell/base/nsDocShell.cpp | 2 +- dom/asmjscache/AsmJSCache.cpp | 10 +- dom/base/ImageEncoder.cpp | 2 +- dom/base/nsContentPermissionHelper.cpp | 12 +- dom/base/nsFocusManager.cpp | 2 +- dom/base/nsFrameLoader.cpp | 12 +- dom/base/nsGlobalWindow.cpp | 4 +- dom/base/nsScriptLoader.cpp | 6 +- .../BluetoothDaemonA2dpInterface.cpp | 4 +- .../BluetoothDaemonAvrcpInterface.cpp | 20 +- .../BluetoothDaemonCoreInterface.cpp | 40 +-- .../BluetoothDaemonGattInterface.cpp | 70 ++--- .../BluetoothDaemonHandsfreeInterface.cpp | 30 +- .../bluedroid/BluetoothDaemonInterface.cpp | 4 +- .../BluetoothDaemonSetupInterface.cpp | 6 +- .../BluetoothDaemonSocketInterface.cpp | 4 +- .../bluedroid/BluetoothServiceBluedroid.cpp | 2 +- dom/bluetooth/bluez/BluetoothDBusService.cpp | 26 +- dom/bluetooth/common/BluetoothService.cpp | 2 +- dom/bluetooth/ipc/BluetoothParent.cpp | 6 +- .../BroadcastChannelParent.cpp | 4 +- dom/cache/AutoUtils.cpp | 10 +- dom/cache/CacheChild.cpp | 2 +- dom/cache/CacheOpParent.cpp | 8 +- dom/cache/CachePushStreamChild.cpp | 4 +- dom/cache/CachePushStreamParent.cpp | 2 +- dom/cache/CacheStorage.cpp | 2 +- dom/cache/CacheStorageChild.cpp | 4 +- dom/cache/CacheStorageParent.cpp | 2 +- dom/cache/CacheStreamControlChild.cpp | 6 +- dom/cache/CacheStreamControlParent.cpp | 6 +- dom/cache/FileUtils.cpp | 2 +- dom/cache/Manager.cpp | 4 +- dom/cache/ReadStream.cpp | 2 +- dom/cache/TypeUtils.cpp | 2 +- dom/canvas/CanvasRenderingContext2D.cpp | 4 +- dom/datastore/DataStoreService.cpp | 2 +- .../DeviceStorageRequestParent.cpp | 24 +- dom/events/EventDispatcher.cpp | 2 +- dom/events/IMEStateManager.cpp | 4 +- dom/events/TextComposition.cpp | 6 +- dom/fetch/FetchDriver.cpp | 4 +- dom/fetch/Request.cpp | 4 +- dom/filehandle/ActorsParent.cpp | 6 +- dom/filesystem/FileSystemTaskBase.cpp | 2 +- dom/fmradio/ipc/FMRadioParent.cpp | 16 +- dom/fmradio/ipc/FMRadioRequestParent.cpp | 2 +- dom/gamepad/GamepadFunctions.cpp | 2 +- dom/geolocation/nsGeolocation.cpp | 4 +- dom/geolocation/nsGeolocationSettings.cpp | 2 +- dom/indexedDB/ActorsParent.cpp | 52 ++-- dom/ipc/Blob.cpp | 4 +- dom/ipc/ColorPickerParent.cpp | 8 +- dom/ipc/ContentChild.cpp | 34 +-- dom/ipc/ContentParent.cpp | 80 +++--- dom/ipc/ContentProcess.cpp | 2 +- dom/ipc/FilePickerParent.cpp | 10 +- dom/ipc/NuwaChild.cpp | 2 +- dom/ipc/NuwaParent.cpp | 4 +- dom/ipc/PreallocatedProcessManager.cpp | 2 +- dom/ipc/ProcessHangMonitor.cpp | 10 +- dom/ipc/ProcessPriorityManager.cpp | 6 +- dom/ipc/ScreenManagerParent.cpp | 4 +- dom/ipc/TabChild.cpp | 10 +- dom/ipc/TabParent.cpp | 58 ++-- dom/ipc/nsIContentParent.cpp | 6 +- dom/media/MediaManager.cpp | 2 +- dom/media/MediaManager.h | 2 +- dom/media/MediaStreamGraph.cpp | 2 +- dom/media/gmp/GMPAudioDecoderChild.cpp | 12 +- dom/media/gmp/GMPAudioDecoderParent.cpp | 2 +- dom/media/gmp/GMPContentParent.cpp | 4 +- dom/media/gmp/GMPDecryptorChild.cpp | 2 +- dom/media/gmp/GMPDecryptorParent.cpp | 16 +- dom/media/gmp/GMPParent.cpp | 4 +- dom/media/gmp/GMPStorageParent.cpp | 22 +- dom/media/gmp/GMPTimerParent.cpp | 2 +- dom/media/gmp/GMPVideoDecoderChild.cpp | 2 +- dom/media/gmp/GMPVideoDecoderParent.cpp | 2 +- dom/media/gmp/GMPVideoEncoderChild.cpp | 4 +- dom/media/gmp/GMPVideoEncoderParent.cpp | 2 +- dom/media/gstreamer/GStreamerReader.cpp | 4 +- dom/media/gtest/TestMediaFormatReader.cpp | 4 +- .../agnostic/eme/EMEDecoderModule.cpp | 8 +- dom/media/systemservices/CamerasChild.cpp | 2 +- dom/media/systemservices/CamerasParent.cpp | 30 +- dom/media/systemservices/MediaParent.cpp | 2 +- .../MediaSystemResourceManagerParent.cpp | 2 +- .../MediaSystemResourceService.cpp | 8 +- dom/media/webaudio/AnalyserNode.cpp | 2 +- .../webspeech/synth/nsSynthVoiceRegistry.cpp | 8 +- dom/messagechannel/MessagePort.cpp | 2 +- dom/messagechannel/MessagePortParent.cpp | 6 +- dom/messagechannel/MessagePortService.cpp | 4 +- dom/mobilemessage/ipc/SmsIPCService.cpp | 2 +- dom/mobilemessage/ipc/SmsParent.cpp | 22 +- dom/network/TCPServerSocketParent.cpp | 4 +- dom/network/TCPSocket.cpp | 2 +- dom/network/TCPSocketChild.cpp | 2 +- dom/network/TCPSocketParent.cpp | 8 +- dom/network/UDPSocketChild.cpp | 8 +- dom/network/UDPSocketParent.cpp | 14 +- dom/nfc/gonk/NfcMessageHandler.cpp | 2 +- dom/nfc/gonk/NfcService.cpp | 6 +- dom/notification/Notification.cpp | 6 +- dom/plugins/base/nsNPAPIPluginInstance.cpp | 2 +- dom/plugins/base/nsPluginTags.cpp | 2 +- dom/plugins/ipc/BrowserStreamParent.cpp | 8 +- dom/plugins/ipc/PluginInstanceParent.cpp | 12 +- dom/plugins/ipc/PluginInstanceParent.h | 2 +- dom/plugins/ipc/PluginModuleChild.cpp | 2 +- dom/plugins/ipc/PluginModuleParent.cpp | 18 +- .../ipc/PluginScriptableObjectParent.cpp | 4 +- dom/plugins/ipc/PluginWidgetChild.cpp | 2 +- .../provider/MulticastDNSDeviceProvider.cpp | 24 +- dom/speakermanager/SpeakerManagerService.cpp | 2 +- dom/storage/DOMStorageCache.cpp | 4 +- dom/storage/DOMStorageIPC.cpp | 20 +- dom/svg/nsSVGElement.cpp | 2 +- dom/workers/ServiceWorkerManager.cpp | 6 +- dom/workers/ServiceWorkerManagerChild.cpp | 2 +- dom/workers/ServiceWorkerManagerParent.cpp | 2 +- dom/workers/ServiceWorkerManagerService.cpp | 10 +- dom/workers/ServiceWorkerPeriodicUpdater.cpp | 2 +- dom/workers/ServiceWorkerScriptCache.cpp | 2 +- dom/xbl/nsBindingManager.cpp | 2 +- .../ipc/PrintProgressDialogChild.cpp | 12 +- .../ipc/PrintProgressDialogParent.cpp | 4 +- .../ipc/PrintSettingsDialogChild.cpp | 2 +- .../printingui/ipc/PrintingParent.cpp | 4 +- .../printingui/ipc/nsPrintingProxy.cpp | 8 +- .../WebBrowserPersistRemoteDocument.cpp | 2 +- extensions/cookie/nsPermissionManager.cpp | 4 +- gfx/gl/SharedSurface.cpp | 4 +- gfx/layers/apz/src/AsyncPanZoomController.cpp | 2 +- gfx/layers/composite/TextureHost.cpp | 2 +- gfx/layers/ipc/CompositorChild.cpp | 6 +- gfx/layers/ipc/CompositorLRU.cpp | 6 +- gfx/layers/ipc/CompositorParent.cpp | 16 +- gfx/layers/ipc/ImageBridgeParent.cpp | 2 +- gfx/layers/ipc/ImageContainerParent.cpp | 2 +- gfx/layers/ipc/LayerTransactionParent.cpp | 4 +- gfx/layers/ipc/SharedBufferManagerParent.cpp | 2 +- gfx/vr/gfxVR.cpp | 2 +- hal/sandbox/SandboxHal.cpp | 20 +- ipc/glue/BackgroundImpl.cpp | 4 +- ipc/glue/CrossProcessMutex_posix.cpp | 2 +- ipc/glue/ProcessUtils_linux.cpp | 2 +- ipc/glue/Shmem.cpp | 4 +- ipc/hal/DaemonRunnables.h | 22 +- ipc/ipdl/test/cxx/TestBadActor.cpp | 2 +- ipc/ipdl/test/cxx/TestDataStructures.cpp | 2 +- js/ipc/WrapperOwner.cpp | 2 +- js/src/jsmath.cpp | 2 +- js/src/vm/Stopwatch.cpp | 2 +- js/xpconnect/loader/mozJSSubScriptLoader.cpp | 2 +- js/xpconnect/src/XPCWrappedNative.cpp | 2 +- layout/base/FrameLayerBuilder.cpp | 2 +- layout/base/nsRefreshDriver.cpp | 6 +- layout/base/nsStyleSheetService.cpp | 4 +- layout/forms/nsComboboxControlFrame.cpp | 2 +- layout/generic/nsColumnSetFrame.cpp | 2 +- layout/generic/nsGfxScrollFrame.cpp | 2 +- layout/generic/nsImageFrame.cpp | 2 +- layout/ipc/VsyncParent.cpp | 2 +- layout/mathml/nsMathMLChar.cpp | 2 +- media/libstagefright/binding/SinfParser.cpp | 4 +- .../WebrtcGlobalInformation.cpp | 8 +- mfbt/AlreadyAddRefed.h | 2 +- mfbt/tests/TestSplayTree.cpp | 2 +- mfbt/tests/TestTuple.cpp | 6 +- mfbt/unused.cpp | 2 +- mfbt/unused.h | 6 +- netwerk/cache2/CacheIndex.cpp | 2 +- netwerk/dns/DNSRequestChild.cpp | 2 +- netwerk/dns/DNSRequestParent.cpp | 6 +- netwerk/ipc/RemoteOpenFileChild.cpp | 10 +- netwerk/ipc/RemoteOpenFileParent.cpp | 2 +- netwerk/protocol/data/DataChannelChild.cpp | 2 +- netwerk/protocol/ftp/FTPChannelParent.cpp | 2 +- netwerk/protocol/http/HttpChannelChild.cpp | 2 +- netwerk/protocol/http/HttpChannelParent.cpp | 12 +- .../http/HttpChannelParentListener.cpp | 2 +- .../res/SubstitutingProtocolHandler.cpp | 2 +- netwerk/protocol/res/nsResProtocolHandler.cpp | 2 +- .../rtsp/controller/RtspControllerParent.cpp | 2 +- .../WebSocketEventListenerParent.cpp | 14 +- netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp | 2 +- netwerk/sctp/datachannel/DataChannel.cpp | 2 +- netwerk/test/TestOpen.cpp | 2 +- netwerk/test/TestProtocols.cpp | 4 +- parser/html/nsHtml5Atom.cpp | 2 +- security/manager/ssl/DataStorage.cpp | 16 +- security/manager/ssl/PSMContentListener.cpp | 12 +- .../manager/ssl/SSLServerCertVerification.cpp | 2 +- security/manager/ssl/SharedSSLState.cpp | 2 +- .../manager/ssl/nsKeygenHandlerContent.cpp | 6 +- security/manager/ssl/nsSmartCardMonitor.cpp | 2 +- security/sandbox/linux/Sandbox.cpp | 4 +- security/sandbox/linux/SandboxUtil.cpp | 2 +- security/sandbox/linux/glue/SandboxCrash.cpp | 6 +- .../nsParentalControlsServiceDefault.cpp | 2 +- .../perfmonitoring/nsPerformanceStats.cpp | 14 +- toolkit/components/places/History.cpp | 4 +- .../components/terminator/nsTerminator.cpp | 6 +- toolkit/crashreporter/nsExceptionHandler.cpp | 10 +- toolkit/crashreporter/test/nsTestCrasher.cpp | 6 +- toolkit/system/gnome/nsPackageKitService.cpp | 2 +- toolkit/xre/glxtest.cpp | 8 +- toolkit/xre/nsAppRunner.cpp | 4 +- tools/memory-profiler/UncensoredAllocator.cpp | 2 +- tools/profiler/tasktracer/GeckoTaskTracer.cpp | 2 +- .../exthandler/ExternalHelperAppParent.cpp | 6 +- .../prefetch/OfflineCacheUpdateParent.cpp | 6 +- .../prefetch/nsOfflineCacheUpdateService.cpp | 2 +- widget/PuppetWidget.cpp | 6 +- widget/ScreenProxy.cpp | 2 +- widget/android/jni/Natives.h | 2 +- widget/android/nsAppShell.h | 2 +- widget/android/nsWindow.cpp | 6 +- widget/cocoa/TextInputHandler.mm | 2 +- widget/cocoa/nsClipboard.mm | 2 +- widget/gonk/ProcessOrientation.cpp | 6 +- widget/gtk/nsAppShell.cpp | 6 +- widget/gtk/nsSound.cpp | 2 +- widget/nsBaseDragService.cpp | 2 +- widget/nsDragServiceProxy.cpp | 4 +- widget/nsScreenManagerProxy.cpp | 10 +- widget/windows/nsWindowGfx.cpp | 2 +- xpcom/base/SystemMemoryReporter.cpp | 10 +- xpcom/base/nsDumpUtils.cpp | 2 +- xpcom/base/nsMemoryInfoDumper.cpp | 4 +- xpcom/ds/nsAtomTable.cpp | 2 +- xpcom/tests/TestTArray.cpp | 2 +- xpcom/tests/gtest/TestCloneInputStream.cpp | 2 +- xpcom/threads/AbstractThread.cpp | 2 +- xpcom/threads/TaskQueue.h | 2 +- 240 files changed, 907 insertions(+), 907 deletions(-) diff --git a/accessible/ipc/ProxyAccessible.cpp b/accessible/ipc/ProxyAccessible.cpp index 5654a87cf7aaa..33299aa4103d8 100644 --- a/accessible/ipc/ProxyAccessible.cpp +++ b/accessible/ipc/ProxyAccessible.cpp @@ -80,7 +80,7 @@ uint64_t ProxyAccessible::State() const { uint64_t state = 0; - unused << mDoc->SendState(mID, &state); + Unused << mDoc->SendState(mID, &state); return state; } @@ -88,45 +88,45 @@ uint64_t ProxyAccessible::NativeState() const { uint64_t state = 0; - unused << mDoc->SendNativeState(mID, &state); + Unused << mDoc->SendNativeState(mID, &state); return state; } void ProxyAccessible::Name(nsString& aName) const { - unused << mDoc->SendName(mID, &aName); + Unused << mDoc->SendName(mID, &aName); } void ProxyAccessible::Value(nsString& aValue) const { - unused << mDoc->SendValue(mID, &aValue); + Unused << mDoc->SendValue(mID, &aValue); } void ProxyAccessible::Help(nsString& aHelp) const { - unused << mDoc->SendHelp(mID, &aHelp); + Unused << mDoc->SendHelp(mID, &aHelp); } void ProxyAccessible::Description(nsString& aDesc) const { - unused << mDoc->SendDescription(mID, &aDesc); + Unused << mDoc->SendDescription(mID, &aDesc); } void ProxyAccessible::Attributes(nsTArray *aAttrs) const { - unused << mDoc->SendAttributes(mID, aAttrs); + Unused << mDoc->SendAttributes(mID, aAttrs); } nsTArray ProxyAccessible::RelationByType(RelationType aType) const { nsTArray targetIDs; - unused << mDoc->SendRelationByType(mID, static_cast(aType), + Unused << mDoc->SendRelationByType(mID, static_cast(aType), &targetIDs); size_t targetCount = targetIDs.Length(); @@ -144,7 +144,7 @@ ProxyAccessible::Relations(nsTArray* aTypes, const { nsTArray ipcRelations; - unused << mDoc->SendRelations(mID, &ipcRelations); + Unused << mDoc->SendRelations(mID, &ipcRelations); size_t relationCount = ipcRelations.Length(); aTypes->SetCapacity(relationCount); @@ -172,7 +172,7 @@ bool ProxyAccessible::IsSearchbox() const { bool retVal = false; - unused << mDoc->SendIsSearchbox(mID, &retVal); + Unused << mDoc->SendIsSearchbox(mID, &retVal); return retVal; } @@ -180,7 +180,7 @@ nsIAtom* ProxyAccessible::LandmarkRole() const { nsString landmark; - unused << mDoc->SendLandmarkRole(mID, &landmark); + Unused << mDoc->SendLandmarkRole(mID, &landmark); return NS_GetStaticAtom(landmark); } @@ -188,7 +188,7 @@ nsIAtom* ProxyAccessible::ARIARoleAtom() const { nsString role; - unused << mDoc->SendARIARoleAtom(mID, &role); + Unused << mDoc->SendARIARoleAtom(mID, &role); return NS_GetStaticAtom(role); } @@ -196,7 +196,7 @@ int32_t ProxyAccessible::GetLevelInternal() { int32_t level = 0; - unused << mDoc->SendGetLevelInternal(mID, &level); + Unused << mDoc->SendGetLevelInternal(mID, &level); return level; } @@ -204,7 +204,7 @@ int32_t ProxyAccessible::CaretLineNumber() { int32_t line = -1; - unused << mDoc->SendCaretOffset(mID, &line); + Unused << mDoc->SendCaretOffset(mID, &line); return line; } @@ -212,21 +212,21 @@ int32_t ProxyAccessible::CaretOffset() { int32_t offset = 0; - unused << mDoc->SendCaretOffset(mID, &offset); + Unused << mDoc->SendCaretOffset(mID, &offset); return offset; } void ProxyAccessible::SetCaretOffset(int32_t aOffset) { - unused << mDoc->SendSetCaretOffset(mID, aOffset); + Unused << mDoc->SendSetCaretOffset(mID, aOffset); } int32_t ProxyAccessible::CharacterCount() { int32_t count = 0; - unused << mDoc->SendCharacterCount(mID, &count); + Unused << mDoc->SendCharacterCount(mID, &count); return count; } @@ -234,7 +234,7 @@ int32_t ProxyAccessible::SelectionCount() { int32_t count = 0; - unused << mDoc->SendSelectionCount(mID, &count); + Unused << mDoc->SendSelectionCount(mID, &count); return count; } @@ -243,7 +243,7 @@ ProxyAccessible::TextSubstring(int32_t aStartOffset, int32_t aEndOfset, nsString& aText) const { bool valid; - unused << mDoc->SendTextSubstring(mID, aStartOffset, aEndOfset, &aText, &valid); + Unused << mDoc->SendTextSubstring(mID, aStartOffset, aEndOfset, &aText, &valid); return valid; } @@ -253,7 +253,7 @@ ProxyAccessible::GetTextAfterOffset(int32_t aOffset, nsString& aText, int32_t* aStartOffset, int32_t* aEndOffset) { - unused << mDoc->SendGetTextAfterOffset(mID, aOffset, aBoundaryType, + Unused << mDoc->SendGetTextAfterOffset(mID, aOffset, aBoundaryType, &aText, aStartOffset, aEndOffset); } @@ -263,7 +263,7 @@ ProxyAccessible::GetTextAtOffset(int32_t aOffset, nsString& aText, int32_t* aStartOffset, int32_t* aEndOffset) { - unused << mDoc->SendGetTextAtOffset(mID, aOffset, aBoundaryType, + Unused << mDoc->SendGetTextAtOffset(mID, aOffset, aBoundaryType, &aText, aStartOffset, aEndOffset); } @@ -273,7 +273,7 @@ ProxyAccessible::GetTextBeforeOffset(int32_t aOffset, nsString& aText, int32_t* aStartOffset, int32_t* aEndOffset) { - unused << mDoc->SendGetTextBeforeOffset(mID, aOffset, aBoundaryType, + Unused << mDoc->SendGetTextBeforeOffset(mID, aOffset, aBoundaryType, &aText, aStartOffset, aEndOffset); } @@ -281,7 +281,7 @@ char16_t ProxyAccessible::CharAt(int32_t aOffset) { uint16_t retval = 0; - unused << mDoc->SendCharAt(mID, aOffset, &retval); + Unused << mDoc->SendCharAt(mID, aOffset, &retval); return static_cast(retval); } @@ -292,14 +292,14 @@ ProxyAccessible::TextAttributes(bool aIncludeDefAttrs, int32_t* aStartOffset, int32_t* aEndOffset) { - unused << mDoc->SendTextAttributes(mID, aIncludeDefAttrs, aOffset, + Unused << mDoc->SendTextAttributes(mID, aIncludeDefAttrs, aOffset, aAttributes, aStartOffset, aEndOffset); } void ProxyAccessible::DefaultTextAttributes(nsTArray* aAttrs) { - unused << mDoc->SendDefaultTextAttributes(mID, aAttrs); + Unused << mDoc->SendDefaultTextAttributes(mID, aAttrs); } nsIntRect @@ -307,7 +307,7 @@ ProxyAccessible::TextBounds(int32_t aStartOffset, int32_t aEndOffset, uint32_t aCoordType) { nsIntRect rect; - unused << + Unused << mDoc->SendTextBounds(mID, aStartOffset, aEndOffset, aCoordType, &rect); return rect; } @@ -316,7 +316,7 @@ nsIntRect ProxyAccessible::CharBounds(int32_t aOffset, uint32_t aCoordType) { nsIntRect rect; - unused << + Unused << mDoc->SendCharBounds(mID, aOffset, aCoordType, &rect); return rect; } @@ -325,7 +325,7 @@ int32_t ProxyAccessible::OffsetAtPoint(int32_t aX, int32_t aY, uint32_t aCoordType) { int32_t retVal = -1; - unused << mDoc->SendOffsetAtPoint(mID, aX, aY, aCoordType, &retVal); + Unused << mDoc->SendOffsetAtPoint(mID, aX, aY, aCoordType, &retVal); return retVal; } @@ -336,7 +336,7 @@ ProxyAccessible::SelectionBoundsAt(int32_t aSelectionNum, int32_t* aEndOffset) { bool retVal = false; - unused << mDoc->SendSelectionBoundsAt(mID, aSelectionNum, &retVal, &aData, + Unused << mDoc->SendSelectionBoundsAt(mID, aSelectionNum, &retVal, &aData, aStartOffset, aEndOffset); return retVal; } @@ -347,7 +347,7 @@ ProxyAccessible::SetSelectionBoundsAt(int32_t aSelectionNum, int32_t aEndOffset) { bool retVal = false; - unused << mDoc->SendSetSelectionBoundsAt(mID, aSelectionNum, aStartOffset, + Unused << mDoc->SendSetSelectionBoundsAt(mID, aSelectionNum, aStartOffset, aEndOffset, &retVal); return retVal; } @@ -357,7 +357,7 @@ ProxyAccessible::AddToSelection(int32_t aStartOffset, int32_t aEndOffset) { bool retVal = false; - unused << mDoc->SendAddToSelection(mID, aStartOffset, aEndOffset, &retVal); + Unused << mDoc->SendAddToSelection(mID, aStartOffset, aEndOffset, &retVal); return retVal; } @@ -365,7 +365,7 @@ bool ProxyAccessible::RemoveFromSelection(int32_t aSelectionNum) { bool retVal = false; - unused << mDoc->SendRemoveFromSelection(mID, aSelectionNum, &retVal); + Unused << mDoc->SendRemoveFromSelection(mID, aSelectionNum, &retVal); return retVal; } @@ -373,7 +373,7 @@ void ProxyAccessible::ScrollSubstringTo(int32_t aStartOffset, int32_t aEndOffset, uint32_t aScrollType) { - unused << mDoc->SendScrollSubstringTo(mID, aStartOffset, aEndOffset, aScrollType); + Unused << mDoc->SendScrollSubstringTo(mID, aStartOffset, aEndOffset, aScrollType); } void @@ -382,27 +382,27 @@ ProxyAccessible::ScrollSubstringToPoint(int32_t aStartOffset, uint32_t aCoordinateType, int32_t aX, int32_t aY) { - unused << mDoc->SendScrollSubstringToPoint(mID, aStartOffset, aEndOffset, + Unused << mDoc->SendScrollSubstringToPoint(mID, aStartOffset, aEndOffset, aCoordinateType, aX, aY); } void ProxyAccessible::Text(nsString* aText) { - unused << mDoc->SendText(mID, aText); + Unused << mDoc->SendText(mID, aText); } void ProxyAccessible::ReplaceText(const nsString& aText) { - unused << mDoc->SendReplaceText(mID, aText); + Unused << mDoc->SendReplaceText(mID, aText); } bool ProxyAccessible::InsertText(const nsString& aText, int32_t aPosition) { bool valid; - unused << mDoc->SendInsertText(mID, aText, aPosition, &valid); + Unused << mDoc->SendInsertText(mID, aText, aPosition, &valid); return valid; } @@ -410,7 +410,7 @@ bool ProxyAccessible::CopyText(int32_t aStartPos, int32_t aEndPos) { bool valid; - unused << mDoc->SendCopyText(mID, aStartPos, aEndPos, &valid); + Unused << mDoc->SendCopyText(mID, aStartPos, aEndPos, &valid); return valid; } @@ -418,7 +418,7 @@ bool ProxyAccessible::CutText(int32_t aStartPos, int32_t aEndPos) { bool valid; - unused << mDoc->SendCutText(mID, aStartPos, aEndPos, &valid); + Unused << mDoc->SendCutText(mID, aStartPos, aEndPos, &valid); return valid; } @@ -426,7 +426,7 @@ bool ProxyAccessible::DeleteText(int32_t aStartPos, int32_t aEndPos) { bool valid; - unused << mDoc->SendDeleteText(mID, aStartPos, aEndPos, &valid); + Unused << mDoc->SendDeleteText(mID, aStartPos, aEndPos, &valid); return valid; } @@ -434,7 +434,7 @@ bool ProxyAccessible::PasteText(int32_t aPosition) { bool valid; - unused << mDoc->SendPasteText(mID, aPosition, &valid); + Unused << mDoc->SendPasteText(mID, aPosition, &valid); return valid; } @@ -442,7 +442,7 @@ nsIntPoint ProxyAccessible::ImagePosition(uint32_t aCoordType) { nsIntPoint retVal; - unused << mDoc->SendImagePosition(mID, aCoordType, &retVal); + Unused << mDoc->SendImagePosition(mID, aCoordType, &retVal); return retVal; } @@ -450,7 +450,7 @@ nsIntSize ProxyAccessible::ImageSize() { nsIntSize retVal; - unused << mDoc->SendImageSize(mID, &retVal); + Unused << mDoc->SendImageSize(mID, &retVal); return retVal; } @@ -458,7 +458,7 @@ uint32_t ProxyAccessible::StartOffset(bool* aOk) { uint32_t retVal = 0; - unused << mDoc->SendStartOffset(mID, &retVal, aOk); + Unused << mDoc->SendStartOffset(mID, &retVal, aOk); return retVal; } @@ -466,7 +466,7 @@ uint32_t ProxyAccessible::EndOffset(bool* aOk) { uint32_t retVal = 0; - unused << mDoc->SendEndOffset(mID, &retVal, aOk); + Unused << mDoc->SendEndOffset(mID, &retVal, aOk); return retVal; } @@ -474,7 +474,7 @@ bool ProxyAccessible::IsLinkValid() { bool retVal = false; - unused << mDoc->SendIsLinkValid(mID, &retVal); + Unused << mDoc->SendIsLinkValid(mID, &retVal); return retVal; } @@ -482,14 +482,14 @@ uint32_t ProxyAccessible::AnchorCount(bool* aOk) { uint32_t retVal = 0; - unused << mDoc->SendAnchorCount(mID, &retVal, aOk); + Unused << mDoc->SendAnchorCount(mID, &retVal, aOk); return retVal; } void ProxyAccessible::AnchorURIAt(uint32_t aIndex, nsCString& aURI, bool* aOk) { - unused << mDoc->SendAnchorURIAt(mID, aIndex, &aURI, aOk); + Unused << mDoc->SendAnchorURIAt(mID, aIndex, &aURI, aOk); } ProxyAccessible* @@ -497,7 +497,7 @@ ProxyAccessible::AnchorAt(uint32_t aIndex) { uint64_t id = 0; bool ok = false; - unused << mDoc->SendAnchorAt(mID, aIndex, &id, &ok); + Unused << mDoc->SendAnchorAt(mID, aIndex, &id, &ok); return ok ? mDoc->GetAccessible(id) : nullptr; } @@ -505,7 +505,7 @@ uint32_t ProxyAccessible::LinkCount() { uint32_t retVal = 0; - unused << mDoc->SendLinkCount(mID, &retVal); + Unused << mDoc->SendLinkCount(mID, &retVal); return retVal; } @@ -514,7 +514,7 @@ ProxyAccessible::LinkAt(const uint32_t& aIndex) { uint64_t linkID = 0; bool ok = false; - unused << mDoc->SendLinkAt(mID, aIndex, &linkID, &ok); + Unused << mDoc->SendLinkAt(mID, aIndex, &linkID, &ok); return ok ? mDoc->GetAccessible(linkID) : nullptr; } @@ -523,7 +523,7 @@ ProxyAccessible::LinkIndexOf(ProxyAccessible* aLink) { int32_t retVal = -1; if (aLink) { - unused << mDoc->SendLinkIndexOf(mID, aLink->ID(), &retVal); + Unused << mDoc->SendLinkIndexOf(mID, aLink->ID(), &retVal); } return retVal; @@ -533,7 +533,7 @@ int32_t ProxyAccessible::LinkIndexAtOffset(uint32_t aOffset) { int32_t retVal = -1; - unused << mDoc->SendLinkIndexAtOffset(mID, aOffset, &retVal); + Unused << mDoc->SendLinkIndexAtOffset(mID, aOffset, &retVal); return retVal; } @@ -542,7 +542,7 @@ ProxyAccessible::TableOfACell() { uint64_t tableID = 0; bool ok = false; - unused << mDoc->SendTableOfACell(mID, &tableID, &ok); + Unused << mDoc->SendTableOfACell(mID, &tableID, &ok); return ok ? mDoc->GetAccessible(tableID) : nullptr; } @@ -550,7 +550,7 @@ uint32_t ProxyAccessible::ColIdx() { uint32_t index = 0; - unused << mDoc->SendColIdx(mID, &index); + Unused << mDoc->SendColIdx(mID, &index); return index; } @@ -558,7 +558,7 @@ uint32_t ProxyAccessible::RowIdx() { uint32_t index = 0; - unused << mDoc->SendRowIdx(mID, &index); + Unused << mDoc->SendRowIdx(mID, &index); return index; } @@ -566,7 +566,7 @@ uint32_t ProxyAccessible::ColExtent() { uint32_t extent = 0; - unused << mDoc->SendColExtent(mID, &extent); + Unused << mDoc->SendColExtent(mID, &extent); return extent; } @@ -574,7 +574,7 @@ uint32_t ProxyAccessible::RowExtent() { uint32_t extent = 0; - unused << mDoc->SendRowExtent(mID, &extent); + Unused << mDoc->SendRowExtent(mID, &extent); return extent; } @@ -582,7 +582,7 @@ void ProxyAccessible::ColHeaderCells(nsTArray* aCells) { nsTArray targetIDs; - unused << mDoc->SendColHeaderCells(mID, &targetIDs); + Unused << mDoc->SendColHeaderCells(mID, &targetIDs); size_t targetCount = targetIDs.Length(); for (size_t i = 0; i < targetCount; i++) { @@ -594,7 +594,7 @@ void ProxyAccessible::RowHeaderCells(nsTArray* aCells) { nsTArray targetIDs; - unused << mDoc->SendRowHeaderCells(mID, &targetIDs); + Unused << mDoc->SendRowHeaderCells(mID, &targetIDs); size_t targetCount = targetIDs.Length(); for (size_t i = 0; i < targetCount; i++) { @@ -606,7 +606,7 @@ bool ProxyAccessible::IsCellSelected() { bool selected = false; - unused << mDoc->SendIsCellSelected(mID, &selected); + Unused << mDoc->SendIsCellSelected(mID, &selected); return selected; } @@ -615,21 +615,21 @@ ProxyAccessible::TableCaption() { uint64_t captionID = 0; bool ok = false; - unused << mDoc->SendTableCaption(mID, &captionID, &ok); + Unused << mDoc->SendTableCaption(mID, &captionID, &ok); return ok ? mDoc->GetAccessible(captionID) : nullptr; } void ProxyAccessible::TableSummary(nsString& aSummary) { - unused << mDoc->SendTableSummary(mID, &aSummary); + Unused << mDoc->SendTableSummary(mID, &aSummary); } uint32_t ProxyAccessible::TableColumnCount() { uint32_t count = 0; - unused << mDoc->SendTableColumnCount(mID, &count); + Unused << mDoc->SendTableColumnCount(mID, &count); return count; } @@ -637,7 +637,7 @@ uint32_t ProxyAccessible::TableRowCount() { uint32_t count = 0; - unused << mDoc->SendTableRowCount(mID, &count); + Unused << mDoc->SendTableRowCount(mID, &count); return count; } @@ -646,7 +646,7 @@ ProxyAccessible::TableCellAt(uint32_t aRow, uint32_t aCol) { uint64_t cellID = 0; bool ok = false; - unused << mDoc->SendTableCellAt(mID, aRow, aCol, &cellID, &ok); + Unused << mDoc->SendTableCellAt(mID, aRow, aCol, &cellID, &ok); return ok ? mDoc->GetAccessible(cellID) : nullptr; } @@ -654,7 +654,7 @@ int32_t ProxyAccessible::TableCellIndexAt(uint32_t aRow, uint32_t aCol) { int32_t index = 0; - unused << mDoc->SendTableCellIndexAt(mID, aRow, aCol, &index); + Unused << mDoc->SendTableCellIndexAt(mID, aRow, aCol, &index); return index; } @@ -662,7 +662,7 @@ int32_t ProxyAccessible::TableColumnIndexAt(uint32_t aCellIndex) { int32_t index = 0; - unused << mDoc->SendTableColumnIndexAt(mID, aCellIndex, &index); + Unused << mDoc->SendTableColumnIndexAt(mID, aCellIndex, &index); return index; } @@ -670,7 +670,7 @@ int32_t ProxyAccessible::TableRowIndexAt(uint32_t aCellIndex) { int32_t index = 0; - unused << mDoc->SendTableRowIndexAt(mID, aCellIndex, &index); + Unused << mDoc->SendTableRowIndexAt(mID, aCellIndex, &index); return index; } @@ -678,14 +678,14 @@ void ProxyAccessible::TableRowAndColumnIndicesAt(uint32_t aCellIndex, int32_t* aRow, int32_t* aCol) { - unused << mDoc->SendTableRowAndColumnIndicesAt(mID, aCellIndex, aRow, aCol); + Unused << mDoc->SendTableRowAndColumnIndicesAt(mID, aCellIndex, aRow, aCol); } uint32_t ProxyAccessible::TableColumnExtentAt(uint32_t aRow, uint32_t aCol) { uint32_t extent = 0; - unused << mDoc->SendTableColumnExtentAt(mID, aRow, aCol, &extent); + Unused << mDoc->SendTableColumnExtentAt(mID, aRow, aCol, &extent); return extent; } @@ -693,27 +693,27 @@ uint32_t ProxyAccessible::TableRowExtentAt(uint32_t aRow, uint32_t aCol) { uint32_t extent = 0; - unused << mDoc->SendTableRowExtentAt(mID, aRow, aCol, &extent); + Unused << mDoc->SendTableRowExtentAt(mID, aRow, aCol, &extent); return extent; } void ProxyAccessible::TableColumnDescription(uint32_t aCol, nsString& aDescription) { - unused << mDoc->SendTableColumnDescription(mID, aCol, &aDescription); + Unused << mDoc->SendTableColumnDescription(mID, aCol, &aDescription); } void ProxyAccessible::TableRowDescription(uint32_t aRow, nsString& aDescription) { - unused << mDoc->SendTableRowDescription(mID, aRow, &aDescription); + Unused << mDoc->SendTableRowDescription(mID, aRow, &aDescription); } bool ProxyAccessible::TableColumnSelected(uint32_t aCol) { bool selected = false; - unused << mDoc->SendTableColumnSelected(mID, aCol, &selected); + Unused << mDoc->SendTableColumnSelected(mID, aCol, &selected); return selected; } @@ -721,7 +721,7 @@ bool ProxyAccessible::TableRowSelected(uint32_t aRow) { bool selected = false; - unused << mDoc->SendTableRowSelected(mID, aRow, &selected); + Unused << mDoc->SendTableRowSelected(mID, aRow, &selected); return selected; } @@ -729,7 +729,7 @@ bool ProxyAccessible::TableCellSelected(uint32_t aRow, uint32_t aCol) { bool selected = false; - unused << mDoc->SendTableCellSelected(mID, aRow, aCol, &selected); + Unused << mDoc->SendTableCellSelected(mID, aRow, aCol, &selected); return selected; } @@ -737,7 +737,7 @@ uint32_t ProxyAccessible::TableSelectedCellCount() { uint32_t count = 0; - unused << mDoc->SendTableSelectedCellCount(mID, &count); + Unused << mDoc->SendTableSelectedCellCount(mID, &count); return count; } @@ -745,7 +745,7 @@ uint32_t ProxyAccessible::TableSelectedColumnCount() { uint32_t count = 0; - unused << mDoc->SendTableSelectedColumnCount(mID, &count); + Unused << mDoc->SendTableSelectedColumnCount(mID, &count); return count; } @@ -753,7 +753,7 @@ uint32_t ProxyAccessible::TableSelectedRowCount() { uint32_t count = 0; - unused << mDoc->SendTableSelectedRowCount(mID, &count); + Unused << mDoc->SendTableSelectedRowCount(mID, &count); return count; } @@ -761,7 +761,7 @@ void ProxyAccessible::TableSelectedCells(nsTArray* aCellIDs) { nsAutoTArray cellIDs; - unused << mDoc->SendTableSelectedCells(mID, &cellIDs); + Unused << mDoc->SendTableSelectedCells(mID, &cellIDs); aCellIDs->SetCapacity(cellIDs.Length()); for (uint32_t i = 0; i < cellIDs.Length(); ++i) { aCellIDs->AppendElement(mDoc->GetAccessible(cellIDs[i])); @@ -771,50 +771,50 @@ ProxyAccessible::TableSelectedCells(nsTArray* aCellIDs) void ProxyAccessible::TableSelectedCellIndices(nsTArray* aCellIndices) { - unused << mDoc->SendTableSelectedCellIndices(mID, aCellIndices); + Unused << mDoc->SendTableSelectedCellIndices(mID, aCellIndices); } void ProxyAccessible::TableSelectedColumnIndices(nsTArray* aColumnIndices) { - unused << mDoc->SendTableSelectedColumnIndices(mID, aColumnIndices); + Unused << mDoc->SendTableSelectedColumnIndices(mID, aColumnIndices); } void ProxyAccessible::TableSelectedRowIndices(nsTArray* aRowIndices) { - unused << mDoc->SendTableSelectedRowIndices(mID, aRowIndices); + Unused << mDoc->SendTableSelectedRowIndices(mID, aRowIndices); } void ProxyAccessible::TableSelectColumn(uint32_t aCol) { - unused << mDoc->SendTableSelectColumn(mID, aCol); + Unused << mDoc->SendTableSelectColumn(mID, aCol); } void ProxyAccessible::TableSelectRow(uint32_t aRow) { - unused << mDoc->SendTableSelectRow(mID, aRow); + Unused << mDoc->SendTableSelectRow(mID, aRow); } void ProxyAccessible::TableUnselectColumn(uint32_t aCol) { - unused << mDoc->SendTableUnselectColumn(mID, aCol); + Unused << mDoc->SendTableUnselectColumn(mID, aCol); } void ProxyAccessible::TableUnselectRow(uint32_t aRow) { - unused << mDoc->SendTableUnselectRow(mID, aRow); + Unused << mDoc->SendTableUnselectRow(mID, aRow); } bool ProxyAccessible::TableIsProbablyForLayout() { bool forLayout = false; - unused << mDoc->SendTableIsProbablyForLayout(mID, &forLayout); + Unused << mDoc->SendTableIsProbablyForLayout(mID, &forLayout); return forLayout; } @@ -823,7 +823,7 @@ ProxyAccessible::AtkTableColumnHeader(int32_t aCol) { uint64_t headerID = 0; bool ok = false; - unused << mDoc->SendAtkTableColumnHeader(mID, aCol, &headerID, &ok); + Unused << mDoc->SendAtkTableColumnHeader(mID, aCol, &headerID, &ok); return ok ? mDoc->GetAccessible(headerID) : nullptr; } @@ -832,7 +832,7 @@ ProxyAccessible::AtkTableRowHeader(int32_t aRow) { uint64_t headerID = 0; bool ok = false; - unused << mDoc->SendAtkTableRowHeader(mID, aRow, &headerID, &ok); + Unused << mDoc->SendAtkTableRowHeader(mID, aRow, &headerID, &ok); return ok ? mDoc->GetAccessible(headerID) : nullptr; } @@ -840,7 +840,7 @@ void ProxyAccessible::SelectedItems(nsTArray* aSelectedItems) { nsAutoTArray itemIDs; - unused << mDoc->SendSelectedItems(mID, &itemIDs); + Unused << mDoc->SendSelectedItems(mID, &itemIDs); aSelectedItems->SetCapacity(itemIDs.Length()); for (size_t i = 0; i < itemIDs.Length(); ++i) { aSelectedItems->AppendElement(mDoc->GetAccessible(itemIDs[i])); @@ -851,7 +851,7 @@ uint32_t ProxyAccessible::SelectedItemCount() { uint32_t count = 0; - unused << mDoc->SendSelectedItemCount(mID, &count); + Unused << mDoc->SendSelectedItemCount(mID, &count); return count; } @@ -860,7 +860,7 @@ ProxyAccessible::GetSelectedItem(uint32_t aIndex) { uint64_t selectedItemID = 0; bool ok = false; - unused << mDoc->SendGetSelectedItem(mID, aIndex, &selectedItemID, &ok); + Unused << mDoc->SendGetSelectedItem(mID, aIndex, &selectedItemID, &ok); return ok ? mDoc->GetAccessible(selectedItemID) : nullptr; } @@ -868,7 +868,7 @@ bool ProxyAccessible::IsItemSelected(uint32_t aIndex) { bool selected = false; - unused << mDoc->SendIsItemSelected(mID, aIndex, &selected); + Unused << mDoc->SendIsItemSelected(mID, aIndex, &selected); return selected; } @@ -876,7 +876,7 @@ bool ProxyAccessible::AddItemToSelection(uint32_t aIndex) { bool success = false; - unused << mDoc->SendAddItemToSelection(mID, aIndex, &success); + Unused << mDoc->SendAddItemToSelection(mID, aIndex, &success); return success; } @@ -884,7 +884,7 @@ bool ProxyAccessible::RemoveItemFromSelection(uint32_t aIndex) { bool success = false; - unused << mDoc->SendRemoveItemFromSelection(mID, aIndex, &success); + Unused << mDoc->SendRemoveItemFromSelection(mID, aIndex, &success); return success; } @@ -892,7 +892,7 @@ bool ProxyAccessible::SelectAll() { bool success = false; - unused << mDoc->SendSelectAll(mID, &success); + Unused << mDoc->SendSelectAll(mID, &success); return success; } @@ -900,27 +900,27 @@ bool ProxyAccessible::UnselectAll() { bool success = false; - unused << mDoc->SendUnselectAll(mID, &success); + Unused << mDoc->SendUnselectAll(mID, &success); return success; } void ProxyAccessible::TakeSelection() { - unused << mDoc->SendTakeSelection(mID); + Unused << mDoc->SendTakeSelection(mID); } void ProxyAccessible::SetSelected(bool aSelect) { - unused << mDoc->SendSetSelected(mID, aSelect); + Unused << mDoc->SendSetSelected(mID, aSelect); } bool ProxyAccessible::DoAction(uint8_t aIndex) { bool success = false; - unused << mDoc->SendDoAction(mID, aIndex, &success); + Unused << mDoc->SendDoAction(mID, aIndex, &success); return success; } @@ -928,20 +928,20 @@ uint8_t ProxyAccessible::ActionCount() { uint8_t count = 0; - unused << mDoc->SendActionCount(mID, &count); + Unused << mDoc->SendActionCount(mID, &count); return count; } void ProxyAccessible::ActionDescriptionAt(uint8_t aIndex, nsString& aDescription) { - unused << mDoc->SendActionDescriptionAt(mID, aIndex, &aDescription); + Unused << mDoc->SendActionDescriptionAt(mID, aIndex, &aDescription); } void ProxyAccessible::ActionNameAt(uint8_t aIndex, nsString& aName) { - unused << mDoc->SendActionNameAt(mID, aIndex, &aName); + Unused << mDoc->SendActionNameAt(mID, aIndex, &aName); } KeyBinding @@ -949,7 +949,7 @@ ProxyAccessible::AccessKey() { uint32_t key = 0; uint32_t modifierMask = 0; - unused << mDoc->SendAccessKey(mID, &key, &modifierMask); + Unused << mDoc->SendAccessKey(mID, &key, &modifierMask); return KeyBinding(key, modifierMask); } @@ -958,21 +958,21 @@ ProxyAccessible::KeyboardShortcut() { uint32_t key = 0; uint32_t modifierMask = 0; - unused << mDoc->SendKeyboardShortcut(mID, &key, &modifierMask); + Unused << mDoc->SendKeyboardShortcut(mID, &key, &modifierMask); return KeyBinding(key, modifierMask); } void ProxyAccessible::AtkKeyBinding(nsString& aBinding) { - unused << mDoc->SendAtkKeyBinding(mID, &aBinding); + Unused << mDoc->SendAtkKeyBinding(mID, &aBinding); } double ProxyAccessible::CurValue() { double val = UnspecifiedNaN(); - unused << mDoc->SendCurValue(mID, &val); + Unused << mDoc->SendCurValue(mID, &val); return val; } @@ -980,7 +980,7 @@ bool ProxyAccessible::SetCurValue(double aValue) { bool success = false; - unused << mDoc->SendSetCurValue(mID, aValue, &success); + Unused << mDoc->SendSetCurValue(mID, aValue, &success); return success; } @@ -988,7 +988,7 @@ double ProxyAccessible::MinValue() { double val = UnspecifiedNaN(); - unused << mDoc->SendMinValue(mID, &val); + Unused << mDoc->SendMinValue(mID, &val); return val; } @@ -996,7 +996,7 @@ double ProxyAccessible::MaxValue() { double val = UnspecifiedNaN(); - unused << mDoc->SendMaxValue(mID, &val); + Unused << mDoc->SendMaxValue(mID, &val); return val; } @@ -1004,21 +1004,21 @@ double ProxyAccessible::Step() { double step = UnspecifiedNaN(); - unused << mDoc->SendStep(mID, &step); + Unused << mDoc->SendStep(mID, &step); return step; } void ProxyAccessible::TakeFocus() { - unused << mDoc->SendTakeFocus(mID); + Unused << mDoc->SendTakeFocus(mID); } uint32_t ProxyAccessible::EmbeddedChildCount() const { uint32_t count; - unused << mDoc->SendEmbeddedChildCount(mID, &count); + Unused << mDoc->SendEmbeddedChildCount(mID, &count); return count; } @@ -1027,7 +1027,7 @@ ProxyAccessible::IndexOfEmbeddedChild(const ProxyAccessible* aChild) { uint64_t childID = aChild->mID; uint32_t childIdx; - unused << mDoc->SendIndexOfEmbeddedChild(mID, childID, &childIdx); + Unused << mDoc->SendIndexOfEmbeddedChild(mID, childID, &childIdx); return childIdx; } @@ -1043,7 +1043,7 @@ ProxyAccessible::EmbeddedChildAt(size_t aChildIdx) } uint64_t childID; - unused << mDoc->SendEmbeddedChildAt(mID, aChildIdx, &childID); + Unused << mDoc->SendEmbeddedChildAt(mID, aChildIdx, &childID); return mDoc->GetAccessible(childID); } @@ -1052,7 +1052,7 @@ ProxyAccessible::FocusedChild() { uint64_t childID = 0; bool ok = false; - unused << mDoc->SendFocusedChild(mID, &childID, &ok); + Unused << mDoc->SendFocusedChild(mID, &childID, &ok); return ok ? mDoc->GetAccessible(childID) : nullptr; } @@ -1062,7 +1062,7 @@ ProxyAccessible::ChildAtPoint(int32_t aX, int32_t aY, { uint64_t childID = 0; bool ok = false; - unused << mDoc->SendAccessibleAtPoint(mID, aX, aY, false, + Unused << mDoc->SendAccessibleAtPoint(mID, aX, aY, false, static_cast(aWhichChild), &childID, &ok); return ok ? mDoc->GetAccessible(childID) : nullptr; @@ -1072,7 +1072,7 @@ nsIntRect ProxyAccessible::Bounds() { nsIntRect rect; - unused << mDoc->SendExtents(mID, false, + Unused << mDoc->SendExtents(mID, false, &(rect.x), &(rect.y), &(rect.width), &(rect.height)); return rect; @@ -1081,38 +1081,38 @@ ProxyAccessible::Bounds() void ProxyAccessible::Language(nsString& aLocale) { - unused << mDoc->SendLanguage(mID, &aLocale); + Unused << mDoc->SendLanguage(mID, &aLocale); } void ProxyAccessible::DocType(nsString& aType) { - unused << mDoc->SendDocType(mID, &aType); + Unused << mDoc->SendDocType(mID, &aType); } void ProxyAccessible::Title(nsString& aTitle) { - unused << mDoc->SendTitle(mID, &aTitle); + Unused << mDoc->SendTitle(mID, &aTitle); } void ProxyAccessible::URL(nsString& aURL) { - unused << mDoc->SendURL(mID, &aURL); + Unused << mDoc->SendURL(mID, &aURL); } void ProxyAccessible::MimeType(nsString aMime) { - unused << mDoc->SendMimeType(mID, &aMime); + Unused << mDoc->SendMimeType(mID, &aMime); } void ProxyAccessible::URLDocTypeMimeType(nsString& aURL, nsString& aDocType, nsString& aMimeType) { - unused << mDoc->SendURLDocTypeMimeType(mID, &aURL, &aDocType, &aMimeType); + Unused << mDoc->SendURLDocTypeMimeType(mID, &aURL, &aDocType, &aMimeType); } ProxyAccessible* @@ -1121,7 +1121,7 @@ ProxyAccessible::AccessibleAtPoint(int32_t aX, int32_t aY, { uint64_t childID = 0; bool ok = false; - unused << + Unused << mDoc->SendAccessibleAtPoint(mID, aX, aY, aNeedsScreenCoords, static_cast(Accessible::eDirectChild), &childID, &ok); @@ -1132,7 +1132,7 @@ void ProxyAccessible::Extents(bool aNeedsScreenCoords, int32_t* aX, int32_t* aY, int32_t* aWidth, int32_t* aHeight) { - unused << mDoc->SendExtents(mID, aNeedsScreenCoords, aX, aY, aWidth, aHeight); + Unused << mDoc->SendExtents(mID, aNeedsScreenCoords, aX, aY, aWidth, aHeight); } Accessible* diff --git a/caps/DomainPolicy.cpp b/caps/DomainPolicy.cpp index 8ced3a91b993d..240db8d3de1e5 100644 --- a/caps/DomainPolicy.cpp +++ b/caps/DomainPolicy.cpp @@ -35,7 +35,7 @@ BroadcastDomainSetChange(DomainSetType aSetType, DomainSetChangeType aChangeType SerializeURI(aDomain, uri); for (uint32_t i = 0; i < parents.Length(); i++) { - unused << parents[i]->SendDomainSetChanged(aSetType, aChangeType, uri); + Unused << parents[i]->SendDomainSetChanged(aSetType, aChangeType, uri); } return NS_OK; } diff --git a/chrome/nsChromeRegistryChrome.cpp b/chrome/nsChromeRegistryChrome.cpp index 6dea77e329edc..08a72d9d9d0cf 100644 --- a/chrome/nsChromeRegistryChrome.cpp +++ b/chrome/nsChromeRegistryChrome.cpp @@ -749,7 +749,7 @@ SendManifestEntry(const ChromeRegistryItem &aItem) return; for (uint32_t i = 0; i < parents.Length(); i++) { - unused << parents[i]->SendRegisterChromeItem(aItem); + Unused << parents[i]->SendRegisterChromeItem(aItem); } } diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 113947473736b..e845c42f53a3f 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -5107,7 +5107,7 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI* aURI, // asserts). Satisfy that assertion now since GetDoc will force // creation of one if it hasn't already been created. if (mScriptGlobal) { - unused << mScriptGlobal->GetDoc(); + Unused << mScriptGlobal->GetDoc(); } // Display a message box diff --git a/dom/asmjscache/AsmJSCache.cpp b/dom/asmjscache/AsmJSCache.cpp index 2a79965e4b666..4e064ffc9ea17 100644 --- a/dom/asmjscache/AsmJSCache.cpp +++ b/dom/asmjscache/AsmJSCache.cpp @@ -56,7 +56,7 @@ using mozilla::ipc::BackgroundChild; using mozilla::ipc::IsOnBackgroundThread; using mozilla::ipc::PBackgroundChild; using mozilla::ipc::PrincipalInfo; -using mozilla::unused; +using mozilla::Unused; using mozilla::HashString; namespace mozilla { @@ -478,7 +478,7 @@ class ParentRunnable final FinishOnOwningThread(); if (!mActorDestroyed) { - unused << Send__delete__(this, mResult); + Unused << Send__delete__(this, mResult); } } @@ -993,7 +993,7 @@ ParentRunnable::Run() // Metadata is now open. if (!SendOnOpenMetadataForRead(mMetadata)) { - unused << Send__delete__(this, JS::AsmJSCache_InternalError); + Unused << Send__delete__(this, JS::AsmJSCache_InternalError); } return NS_OK; @@ -1035,7 +1035,7 @@ ParentRunnable::Run() FileDescriptor::PlatformHandleType handle = FileDescriptor::PlatformHandleType(PR_FileDesc2NativeHandle(mFileDesc)); if (!SendOnOpenCacheFile(mFileSize, FileDescriptor(handle))) { - unused << Send__delete__(this, JS::AsmJSCache_InternalError); + Unused << Send__delete__(this, JS::AsmJSCache_InternalError); } return NS_OK; @@ -1451,7 +1451,7 @@ ChildRunnable::Run() Release(); if (!mActorDestroyed) { - unused << Send__delete__(this, JS::AsmJSCache_Success); + Unused << Send__delete__(this, JS::AsmJSCache_Success); } mState = eFinished; diff --git a/dom/base/ImageEncoder.cpp b/dom/base/ImageEncoder.cpp index fd203599d462e..22691f6863acb 100644 --- a/dom/base/ImageEncoder.cpp +++ b/dom/base/ImageEncoder.cpp @@ -210,7 +210,7 @@ class EncodingRunnable : public nsRunnable rv = NS_DispatchToMainThread(mEncodingCompleteEvent); if (NS_FAILED(rv)) { // Better to leak than to crash. - unused << mEncodingCompleteEvent.forget(); + Unused << mEncodingCompleteEvent.forget(); return rv; } diff --git a/dom/base/nsContentPermissionHelper.cpp b/dom/base/nsContentPermissionHelper.cpp index 760b54124602a..1b1c50d027d20 100644 --- a/dom/base/nsContentPermissionHelper.cpp +++ b/dom/base/nsContentPermissionHelper.cpp @@ -33,7 +33,7 @@ #include "nsIDOMEvent.h" #include "nsWeakPtr.h" -using mozilla::unused; // +using mozilla::Unused; // using namespace mozilla::dom; using namespace mozilla; @@ -473,7 +473,7 @@ nsContentPermissionRequestProxy::nsContentPermissionRequesterProxy mGetCallback = aCallback; mWaitGettingResult = true; - unused << mParent->SendGetVisibility(); + Unused << mParent->SendGetVisibility(); return NS_OK; } @@ -608,7 +608,7 @@ nsContentPermissionRequestProxy::Cancel() nsTArray emptyChoices; - unused << ContentPermissionRequestParent::Send__delete__(mParent, false, emptyChoices); + Unused << ContentPermissionRequestParent::Send__delete__(mParent, false, emptyChoices); mParent = nullptr; return NS_OK; } @@ -672,7 +672,7 @@ nsContentPermissionRequestProxy::Allow(JS::HandleValue aChoices) return NS_ERROR_FAILURE; } - unused << ContentPermissionRequestParent::Send__delete__(mParent, true, choices); + Unused << ContentPermissionRequestParent::Send__delete__(mParent, true, choices); mParent = nullptr; return NS_OK; } @@ -776,7 +776,7 @@ RemotePermissionRequest::RecvGetVisibility() bool isActive = false; docshell->GetIsActive(&isActive); - unused << SendNotifyVisibility(isActive); + Unused << SendNotifyVisibility(isActive); return true; } @@ -787,6 +787,6 @@ RemotePermissionRequest::NotifyVisibility(bool isVisible) return NS_OK; } - unused << SendNotifyVisibility(isVisible); + Unused << SendNotifyVisibility(isVisible); return NS_OK; } diff --git a/dom/base/nsFocusManager.cpp b/dom/base/nsFocusManager.cpp index d5cd0e32ef03d..98201dd45e640 100644 --- a/dom/base/nsFocusManager.cpp +++ b/dom/base/nsFocusManager.cpp @@ -1123,7 +1123,7 @@ void ActivateOrDeactivateChild(TabParent* aParent, void* aArg) { bool active = static_cast(aArg); - unused << aParent->SendParentActivated(active); + Unused << aParent->SendParentActivated(active); } void diff --git a/dom/base/nsFrameLoader.cpp b/dom/base/nsFrameLoader.cpp index 7149ebd6af09e..12759b75198a8 100644 --- a/dom/base/nsFrameLoader.cpp +++ b/dom/base/nsFrameLoader.cpp @@ -990,8 +990,8 @@ nsFrameLoader::SwapWithOtherRemoteLoader(nsFrameLoader* aOther, mInSwap = aOther->mInSwap = false; - unused << mRemoteBrowser->SendSwappedWithOtherRemoteLoader(); - unused << aOther->mRemoteBrowser->SendSwappedWithOtherRemoteLoader(); + Unused << mRemoteBrowser->SendSwappedWithOtherRemoteLoader(); + Unused << aOther->mRemoteBrowser->SendSwappedWithOtherRemoteLoader(); return NS_OK; } @@ -2296,7 +2296,7 @@ nsFrameLoader::TryRemoteBrowser() nsGkAtoms::mozpasspointerevents, nsGkAtoms::_true, eCaseMatters)) { - unused << mRemoteBrowser->SendSetUpdateHitRegion(true); + Unused << mRemoteBrowser->SendSetUpdateHitRegion(true); } ReallyLoadFrameScripts(); @@ -2341,14 +2341,14 @@ nsFrameLoader::DeactivateRemoteFrame() { void nsFrameLoader::ActivateUpdateHitRegion() { if (mRemoteBrowser) { - unused << mRemoteBrowser->SendSetUpdateHitRegion(true); + Unused << mRemoteBrowser->SendSetUpdateHitRegion(true); } } void nsFrameLoader::DeactivateUpdateHitRegion() { if (mRemoteBrowser) { - unused << mRemoteBrowser->SendSetUpdateHitRegion(false); + Unused << mRemoteBrowser->SendSetUpdateHitRegion(false); } } @@ -2857,7 +2857,7 @@ nsFrameLoader::RequestNotifyAfterRemotePaint() { // If remote browsing (e10s), handle this with the TabParent. if (mRemoteBrowser) { - unused << mRemoteBrowser->SendRequestNotifyAfterRemotePaint(); + Unused << mRemoteBrowser->SendRequestNotifyAfterRemotePaint(); } return NS_OK; diff --git a/dom/base/nsGlobalWindow.cpp b/dom/base/nsGlobalWindow.cpp index fe14eb24c44e9..8386f12324a00 100644 --- a/dom/base/nsGlobalWindow.cpp +++ b/dom/base/nsGlobalWindow.cpp @@ -11623,7 +11623,7 @@ nsGlobalWindow::SetTimeoutOrInterval(nsIScriptTimeoutHandler *aHandler, } // The timeout is now also held in the timer's closure. - unused << copy.forget(); + Unused << copy.forget(); } else { // If we are frozen, however, then we instead simply set // timeout->mTimeRemaining to be the "time remaining" in the timeout (i.e., @@ -12029,7 +12029,7 @@ nsGlobalWindow::RunTimeout(nsTimeout *aTimeout) // through a timeout that fired while a modal (to this window) // dialog was open or through other non-obvious paths. MOZ_ASSERT(dummy_timeout->HasRefCntOne(), "dummy_timeout may leak"); - unused << timeoutExtraRef.forget().take(); + Unused << timeoutExtraRef.forget().take(); mTimeoutInsertionPoint = last_insertion_point; diff --git a/dom/base/nsScriptLoader.cpp b/dom/base/nsScriptLoader.cpp index 530b8e9ed618f..695f30cfa5a2e 100644 --- a/dom/base/nsScriptLoader.cpp +++ b/dom/base/nsScriptLoader.cpp @@ -819,8 +819,8 @@ NotifyOffThreadScriptLoadCompletedRunnable::~NotifyOffThreadScriptLoadCompletedR } else { MOZ_ASSERT(false, "We really shouldn't leak!"); // Better to leak than crash. - unused << mRequest.forget(); - unused << mLoader.forget(); + Unused << mRequest.forget(); + Unused << mLoader.forget(); } } } @@ -890,7 +890,7 @@ nsScriptLoader::AttemptAsyncScriptCompile(nsScriptLoadRequest* aRequest) mDocument->BlockOnload(); aRequest->mProgress = nsScriptLoadRequest::Progress_Compiling; - unused << runnable.forget(); + Unused << runnable.forget(); return NS_OK; } diff --git a/dom/bluetooth/bluedroid/BluetoothDaemonA2dpInterface.cpp b/dom/bluetooth/bluedroid/BluetoothDaemonA2dpInterface.cpp index 10110f81689cc..858fc76a572af 100644 --- a/dom/bluetooth/bluedroid/BluetoothDaemonA2dpInterface.cpp +++ b/dom/bluetooth/bluedroid/BluetoothDaemonA2dpInterface.cpp @@ -65,7 +65,7 @@ BluetoothDaemonA2dpModule::ConnectCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -86,7 +86,7 @@ BluetoothDaemonA2dpModule::DisconnectCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } diff --git a/dom/bluetooth/bluedroid/BluetoothDaemonAvrcpInterface.cpp b/dom/bluetooth/bluedroid/BluetoothDaemonAvrcpInterface.cpp index d87212b11f04b..442bd9ecbf16c 100644 --- a/dom/bluetooth/bluedroid/BluetoothDaemonAvrcpInterface.cpp +++ b/dom/bluetooth/bluedroid/BluetoothDaemonAvrcpInterface.cpp @@ -68,7 +68,7 @@ BluetoothDaemonAvrcpModule::GetPlayStatusRspCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -94,7 +94,7 @@ BluetoothDaemonAvrcpModule::ListPlayerAppAttrRspCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -118,7 +118,7 @@ BluetoothDaemonAvrcpModule::ListPlayerAppValueRspCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -143,7 +143,7 @@ BluetoothDaemonAvrcpModule::GetPlayerAppValueRspCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -167,7 +167,7 @@ BluetoothDaemonAvrcpModule::GetPlayerAppAttrTextRspCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -191,7 +191,7 @@ BluetoothDaemonAvrcpModule::GetPlayerAppValueTextRspCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -215,7 +215,7 @@ BluetoothDaemonAvrcpModule::GetElementAttrRspCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -237,7 +237,7 @@ BluetoothDaemonAvrcpModule::SetPlayerAppValueRspCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -266,7 +266,7 @@ BluetoothDaemonAvrcpModule::RegisterNotificationRspCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -288,7 +288,7 @@ BluetoothDaemonAvrcpModule::SetVolumeCmd(uint8_t aVolume, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } diff --git a/dom/bluetooth/bluedroid/BluetoothDaemonCoreInterface.cpp b/dom/bluetooth/bluedroid/BluetoothDaemonCoreInterface.cpp index d1024b95ecc86..c76902b254d05 100644 --- a/dom/bluetooth/bluedroid/BluetoothDaemonCoreInterface.cpp +++ b/dom/bluetooth/bluedroid/BluetoothDaemonCoreInterface.cpp @@ -65,7 +65,7 @@ BluetoothDaemonCoreModule::EnableCmd(BluetoothResultHandler* aRes) if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -82,7 +82,7 @@ BluetoothDaemonCoreModule::DisableCmd(BluetoothResultHandler* aRes) if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -100,7 +100,7 @@ BluetoothDaemonCoreModule::GetAdapterPropertiesCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -122,7 +122,7 @@ BluetoothDaemonCoreModule::GetAdapterPropertyCmd(BluetoothPropertyType aType, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -144,7 +144,7 @@ BluetoothDaemonCoreModule::SetAdapterPropertyCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -166,7 +166,7 @@ BluetoothDaemonCoreModule::GetRemoteDevicePropertiesCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -190,7 +190,7 @@ BluetoothDaemonCoreModule::GetRemoteDevicePropertyCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -214,7 +214,7 @@ BluetoothDaemonCoreModule::SetRemoteDevicePropertyCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -237,7 +237,7 @@ BluetoothDaemonCoreModule::GetRemoteServiceRecordCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -258,7 +258,7 @@ BluetoothDaemonCoreModule::GetRemoteServicesCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -275,7 +275,7 @@ BluetoothDaemonCoreModule::StartDiscoveryCmd(BluetoothResultHandler* aRes) if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -292,7 +292,7 @@ BluetoothDaemonCoreModule::CancelDiscoveryCmd(BluetoothResultHandler* aRes) if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -319,7 +319,7 @@ BluetoothDaemonCoreModule::CreateBondCmd(const BluetoothAddress& aBdAddr, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -341,7 +341,7 @@ BluetoothDaemonCoreModule::RemoveBondCmd(const BluetoothAddress& aBdAddr, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -363,7 +363,7 @@ BluetoothDaemonCoreModule::CancelBondCmd(const BluetoothAddress& aBdAddr, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -387,7 +387,7 @@ BluetoothDaemonCoreModule::PinReplyCmd(const BluetoothAddress& aBdAddr, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -411,7 +411,7 @@ BluetoothDaemonCoreModule::SspReplyCmd(const BluetoothAddress& aBdAddr, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -433,7 +433,7 @@ BluetoothDaemonCoreModule::DutModeConfigureCmd(bool aEnable, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -457,7 +457,7 @@ BluetoothDaemonCoreModule::DutModeSendCmd(uint16_t aOpcode, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -481,7 +481,7 @@ BluetoothDaemonCoreModule::LeTestModeCmd(uint16_t aOpcode, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } diff --git a/dom/bluetooth/bluedroid/BluetoothDaemonGattInterface.cpp b/dom/bluetooth/bluedroid/BluetoothDaemonGattInterface.cpp index 2877e38a2405b..733c0712b9b68 100644 --- a/dom/bluetooth/bluedroid/BluetoothDaemonGattInterface.cpp +++ b/dom/bluetooth/bluedroid/BluetoothDaemonGattInterface.cpp @@ -67,7 +67,7 @@ BluetoothDaemonGattModule::ClientRegisterCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -89,7 +89,7 @@ BluetoothDaemonGattModule::ClientUnregisterCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -113,7 +113,7 @@ BluetoothDaemonGattModule::ClientScanCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -143,7 +143,7 @@ BluetoothDaemonGattModule::ClientConnectCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -171,7 +171,7 @@ BluetoothDaemonGattModule::ClientDisconnectCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -196,7 +196,7 @@ BluetoothDaemonGattModule::ClientListenCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -222,7 +222,7 @@ BluetoothDaemonGattModule::ClientRefreshCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -250,7 +250,7 @@ BluetoothDaemonGattModule::ClientSearchServiceCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -279,7 +279,7 @@ BluetoothDaemonGattModule::ClientGetIncludedServiceCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -309,7 +309,7 @@ BluetoothDaemonGattModule::ClientGetCharacteristicCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -341,7 +341,7 @@ BluetoothDaemonGattModule::ClientGetDescriptorCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -369,7 +369,7 @@ BluetoothDaemonGattModule::ClientReadCharacteristicCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -396,7 +396,7 @@ BluetoothDaemonGattModule::ClientWriteCharacteristicCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -425,7 +425,7 @@ BluetoothDaemonGattModule::ClientReadDescriptorCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -453,7 +453,7 @@ BluetoothDaemonGattModule::ClientWriteDescriptorCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -477,7 +477,7 @@ BluetoothDaemonGattModule::ClientExecuteWriteCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -505,7 +505,7 @@ BluetoothDaemonGattModule::ClientRegisterNotificationCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -533,7 +533,7 @@ BluetoothDaemonGattModule::ClientDeregisterNotificationCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -558,7 +558,7 @@ BluetoothDaemonGattModule::ClientReadRemoteRssiCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -580,7 +580,7 @@ BluetoothDaemonGattModule::ClientGetDeviceTypeCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -616,7 +616,7 @@ BluetoothDaemonGattModule::ClientSetAdvDataCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -650,7 +650,7 @@ BluetoothDaemonGattModule::ClientTestCommandCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -672,7 +672,7 @@ BluetoothDaemonGattModule::ServerRegisterCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -694,7 +694,7 @@ BluetoothDaemonGattModule::ServerUnregisterCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -724,7 +724,7 @@ BluetoothDaemonGattModule::ServerConnectPeripheralCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -751,7 +751,7 @@ BluetoothDaemonGattModule::ServerDisconnectPeripheralCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -777,7 +777,7 @@ BluetoothDaemonGattModule::ServerAddServiceCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -804,7 +804,7 @@ BluetoothDaemonGattModule::ServerAddIncludedServiceCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -835,7 +835,7 @@ BluetoothDaemonGattModule::ServerAddCharacteristicCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -864,7 +864,7 @@ BluetoothDaemonGattModule::ServerAddDescriptorCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -891,7 +891,7 @@ BluetoothDaemonGattModule::ServerStartServiceCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -916,7 +916,7 @@ BluetoothDaemonGattModule::ServerStopServiceCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -941,7 +941,7 @@ BluetoothDaemonGattModule::ServerDeleteServiceCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -970,7 +970,7 @@ BluetoothDaemonGattModule::ServerSendIndicationCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -1003,7 +1003,7 @@ BluetoothDaemonGattModule::ServerSendResponseCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } diff --git a/dom/bluetooth/bluedroid/BluetoothDaemonHandsfreeInterface.cpp b/dom/bluetooth/bluedroid/BluetoothDaemonHandsfreeInterface.cpp index a72f7f166fb23..9bc584244c508 100644 --- a/dom/bluetooth/bluedroid/BluetoothDaemonHandsfreeInterface.cpp +++ b/dom/bluetooth/bluedroid/BluetoothDaemonHandsfreeInterface.cpp @@ -71,7 +71,7 @@ BluetoothDaemonHandsfreeModule::ConnectCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -93,7 +93,7 @@ BluetoothDaemonHandsfreeModule::DisconnectCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -115,7 +115,7 @@ BluetoothDaemonHandsfreeModule::ConnectAudioCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -137,7 +137,7 @@ BluetoothDaemonHandsfreeModule::DisconnectAudioCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -162,7 +162,7 @@ BluetoothDaemonHandsfreeModule::StartVoiceRecognitionCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -187,7 +187,7 @@ BluetoothDaemonHandsfreeModule::StopVoiceRecognitionCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -217,7 +217,7 @@ BluetoothDaemonHandsfreeModule::VolumeControlCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -246,7 +246,7 @@ BluetoothDaemonHandsfreeModule::DeviceStatusNotificationCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -275,7 +275,7 @@ BluetoothDaemonHandsfreeModule::CopsResponseCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -326,7 +326,7 @@ BluetoothDaemonHandsfreeModule::CindResponseCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -355,7 +355,7 @@ BluetoothDaemonHandsfreeModule::FormattedAtResponseCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -387,7 +387,7 @@ BluetoothDaemonHandsfreeModule::AtResponseCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -430,7 +430,7 @@ BluetoothDaemonHandsfreeModule::ClccResponseCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -463,7 +463,7 @@ BluetoothDaemonHandsfreeModule::PhoneStateChangeCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } @@ -488,7 +488,7 @@ BluetoothDaemonHandsfreeModule::ConfigureWbsCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return NS_OK; } diff --git a/dom/bluetooth/bluedroid/BluetoothDaemonInterface.cpp b/dom/bluetooth/bluedroid/BluetoothDaemonInterface.cpp index 3913eb52cba0d..a6c28f9391ea7 100644 --- a/dom/bluetooth/bluedroid/BluetoothDaemonInterface.cpp +++ b/dom/bluetooth/bluedroid/BluetoothDaemonInterface.cpp @@ -445,7 +445,7 @@ BluetoothDaemonInterface::Init( // If we could not cleanup properly before and an old // instance of the daemon is still running, we kill it // here. - unused << NS_WARN_IF(property_set("ctl.stop", "bluetoothd")); + Unused << NS_WARN_IF(property_set("ctl.stop", "bluetoothd")); mResultHandlerQ.AppendElement(aRes); @@ -1006,7 +1006,7 @@ BluetoothDaemonInterface::OnConnectError(int aIndex) mCmdChannel->Close(); case CMD_CHANNEL: // Stop daemon and close listen socket - unused << NS_WARN_IF(property_set("ctl.stop", "bluetoothd")); + Unused << NS_WARN_IF(property_set("ctl.stop", "bluetoothd")); mListenSocket->Close(); case LISTEN_SOCKET: if (!mResultHandlerQ.IsEmpty()) { diff --git a/dom/bluetooth/bluedroid/BluetoothDaemonSetupInterface.cpp b/dom/bluetooth/bluedroid/BluetoothDaemonSetupInterface.cpp index 39123f5cd8e89..60e6f1f5ca9e1 100644 --- a/dom/bluetooth/bluedroid/BluetoothDaemonSetupInterface.cpp +++ b/dom/bluetooth/bluedroid/BluetoothDaemonSetupInterface.cpp @@ -77,7 +77,7 @@ BluetoothDaemonSetupModule::RegisterModuleCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -99,7 +99,7 @@ BluetoothDaemonSetupModule::UnregisterModuleCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -123,7 +123,7 @@ BluetoothDaemonSetupModule::ConfigurationCmd( if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } diff --git a/dom/bluetooth/bluedroid/BluetoothDaemonSocketInterface.cpp b/dom/bluetooth/bluedroid/BluetoothDaemonSocketInterface.cpp index a14fd7808fddd..8f38b1a7e11e4 100644 --- a/dom/bluetooth/bluedroid/BluetoothDaemonSocketInterface.cpp +++ b/dom/bluetooth/bluedroid/BluetoothDaemonSocketInterface.cpp @@ -49,7 +49,7 @@ BluetoothDaemonSocketModule::ListenCmd(BluetoothSocketType aType, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } @@ -80,7 +80,7 @@ BluetoothDaemonSocketModule::ConnectCmd(const BluetoothAddress& aBdAddr, if (NS_FAILED(rv)) { return rv; } - unused << pdu.forget(); + Unused << pdu.forget(); return rv; } diff --git a/dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp b/dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp index cb16e3d2d86b4..ac55dfae9c6d8 100644 --- a/dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp +++ b/dom/bluetooth/bluedroid/BluetoothServiceBluedroid.cpp @@ -2301,7 +2301,7 @@ BluetoothServiceBluedroid::RemoteDevicePropertiesNotification( break; } } - unused << NS_WARN_IF(i == mGetRemoteServiceRecordArray.Length()); + Unused << NS_WARN_IF(i == mGetRemoteServiceRecordArray.Length()); } else if (p.mType == PROPERTY_UNKNOWN) { /* Bug 1065999: working around unknown properties */ } else { diff --git a/dom/bluetooth/bluez/BluetoothDBusService.cpp b/dom/bluetooth/bluez/BluetoothDBusService.cpp index 269a9408717ce..bf9d6b0605f82 100644 --- a/dom/bluetooth/bluez/BluetoothDBusService.cpp +++ b/dom/bluetooth/bluez/BluetoothDBusService.cpp @@ -1234,7 +1234,7 @@ AppendDeviceName(BluetoothSignal& aSignal) NS_ENSURE_TRUE_VOID(success); - unused << handler.forget(); // picked up by callback handler + Unused << handler.forget(); // picked up by callback handler } class SetPairingConfirmationTask : public Task @@ -1660,7 +1660,7 @@ class AddReservedServiceRecordsReplyHandler : public DBusReplyHandler NS_ENSURE_TRUE(success, false); - unused << handler.forget(); // picked up by callback handler + Unused << handler.forget(); // picked up by callback handler return true; } @@ -1699,7 +1699,7 @@ class AddReservedServiceRecordsTask : public Task NS_ENSURE_TRUE_VOID(success); - unused << handler.forget(); /* picked up by callback handler */ + Unused << handler.forget(); /* picked up by callback handler */ } }; @@ -2390,7 +2390,7 @@ class DefaultAdapterPathReplyHandler : public DBusReplyHandler return false; } - unused << handler.forget(); // picked up by callback handler + Unused << handler.forget(); // picked up by callback handler return true; } @@ -2450,7 +2450,7 @@ class DefaultAdapterTask : public Task DBUS_TYPE_INVALID); NS_ENSURE_TRUE_VOID(success); - unused << handler.forget(); // picked up by callback handler + Unused << handler.forget(); // picked up by callback handler } private: @@ -2523,7 +2523,7 @@ class SendDiscoveryMessageTask : public Task DBUS_TYPE_INVALID); NS_ENSURE_TRUE_VOID(success); - unused << mRunnable.forget(); // picked up by callback handler + Unused << mRunnable.forget(); // picked up by callback handler } private: @@ -2791,7 +2791,7 @@ class BluetoothArrayOfDevicePropertiesReplyHandler : public DBusReplyHandler NS_ENSURE_TRUE(success, false); - unused << handler.forget(); // picked up by callback handler + Unused << handler.forget(); // picked up by callback handler return true; } @@ -2954,7 +2954,7 @@ class SetPropertyTask : public Task 1000, msg); NS_ENSURE_TRUE_VOID(success); - unused << mRunnable.forget(); // picked up by callback handler + Unused << mRunnable.forget(); // picked up by callback handler } private: @@ -3099,7 +3099,7 @@ class CreatePairedDeviceInternalTask : public Task DBUS_TYPE_INVALID); NS_ENSURE_TRUE_VOID(success); - unused << mRunnable.forget(); // picked up by callback handler + Unused << mRunnable.forget(); // picked up by callback handler /** * FIXME: Bug 820274 @@ -3168,7 +3168,7 @@ class RemoveDeviceTask : public Task DBUS_TYPE_INVALID); NS_ENSURE_TRUE_VOID(success); - unused << mRunnable.forget(); // picked up by callback handler + Unused << mRunnable.forget(); // picked up by callback handler } protected: @@ -3622,7 +3622,7 @@ class GetServiceChannelTask : public Task DBUS_TYPE_INVALID); NS_ENSURE_TRUE_VOID(success); - unused << handler.forget(); // picked up by callback handler + Unused << handler.forget(); // picked up by callback handler } private: @@ -3927,7 +3927,7 @@ class SendMetadataTask : public Task DBUS_TYPE_INVALID); NS_ENSURE_TRUE_VOID(success); - unused << mRunnable.forget(); // picked up by callback handler + Unused << mRunnable.forget(); // picked up by callback handler } private: @@ -4057,7 +4057,7 @@ class SendPlayStatusTask : public Task DBUS_TYPE_INVALID); NS_ENSURE_TRUE_VOID(success); - unused << mRunnable.forget(); // picked up by callback handler + Unused << mRunnable.forget(); // picked up by callback handler } private: diff --git a/dom/bluetooth/common/BluetoothService.cpp b/dom/bluetooth/common/BluetoothService.cpp index 1e01069f3c00e..dad626c47bcc3 100644 --- a/dom/bluetooth/common/BluetoothService.cpp +++ b/dom/bluetooth/common/BluetoothService.cpp @@ -454,7 +454,7 @@ BluetoothService::SetEnabled(bool aEnabled) GetAllBluetoothActors(childActors); for (uint32_t index = 0; index < childActors.Length(); index++) { - unused << childActors[index]->SendEnabled(aEnabled); + Unused << childActors[index]->SendEnabled(aEnabled); } /** diff --git a/dom/bluetooth/ipc/BluetoothParent.cpp b/dom/bluetooth/ipc/BluetoothParent.cpp index 3678ea0613306..9307f6044ce80 100644 --- a/dom/bluetooth/ipc/BluetoothParent.cpp +++ b/dom/bluetooth/ipc/BluetoothParent.cpp @@ -17,7 +17,7 @@ #include "BluetoothReplyRunnable.h" #include "BluetoothService.h" -using mozilla::unused; +using mozilla::Unused; USING_BLUETOOTH_NAMESPACE /******************************************************************************* @@ -99,7 +99,7 @@ BluetoothParent::BeginShutdown() { // Only do something here if we haven't yet begun the shutdown sequence. if (mShutdownState == Running) { - unused << SendBeginShutdown(); + Unused << SendBeginShutdown(); mShutdownState = SentBeginShutdown; } } @@ -357,7 +357,7 @@ BluetoothParent::DeallocPBluetoothRequestParent(PBluetoothRequestParent* aActor) void BluetoothParent::Notify(const BluetoothSignal& aSignal) { - unused << SendNotify(aSignal); + Unused << SendNotify(aSignal); } /******************************************************************************* diff --git a/dom/broadcastchannel/BroadcastChannelParent.cpp b/dom/broadcastchannel/BroadcastChannelParent.cpp index e0bcbd83ac0e7..4d3191ce1a270 100644 --- a/dom/broadcastchannel/BroadcastChannelParent.cpp +++ b/dom/broadcastchannel/BroadcastChannelParent.cpp @@ -60,7 +60,7 @@ BroadcastChannelParent::RecvClose() mService->UnregisterActor(this); mService = nullptr; - unused << Send__delete__(this); + Unused << Send__delete__(this); return true; } @@ -105,7 +105,7 @@ BroadcastChannelParent::CheckAndDeliver(const ClonedMessageData& aData, newData.blobsParent()[i] = blobParent; } - unused << SendNotify(newData); + Unused << SendNotify(newData); } } diff --git a/dom/cache/AutoUtils.cpp b/dom/cache/AutoUtils.cpp index 98f491eb92825..0b7c76b487d91 100644 --- a/dom/cache/AutoUtils.cpp +++ b/dom/cache/AutoUtils.cpp @@ -24,7 +24,7 @@ namespace { -using mozilla::unused; +using mozilla::Unused; using mozilla::dom::cache::CachePushStreamChild; using mozilla::dom::cache::CacheReadStream; using mozilla::dom::cache::CacheReadStreamOrVoid; @@ -54,7 +54,7 @@ CleanupChildFds(CacheReadStream& aReadStream, CleanupAction aAction) MOZ_ASSERT(fdSetActor); if (aAction == Delete) { - unused << fdSetActor->Send__delete__(fdSetActor); + Unused << fdSetActor->Send__delete__(fdSetActor); } // FileDescriptorSet doesn't clear its fds in its ActorDestroy, so we @@ -114,7 +114,7 @@ CleanupParentFds(CacheReadStream& aReadStream, CleanupAction aAction) MOZ_ASSERT(fdSetActor); if (aAction == Delete) { - unused << fdSetActor->Send__delete__(fdSetActor); + Unused << fdSetActor->Send__delete__(fdSetActor); } // FileDescriptorSet doesn't clear its fds in its ActorDestroy, so we @@ -482,7 +482,7 @@ AutoParentOpResult::~AutoParentOpResult() if (action == Forget || result.actorParent() == nullptr) { break; } - unused << PCacheParent::Send__delete__(result.actorParent()); + Unused << PCacheParent::Send__delete__(result.actorParent()); } default: // other types do not need clean up @@ -490,7 +490,7 @@ AutoParentOpResult::~AutoParentOpResult() } if (action == Delete && mStreamControl) { - unused << PCacheStreamControlParent::Send__delete__(mStreamControl); + Unused << PCacheStreamControlParent::Send__delete__(mStreamControl); } } diff --git a/dom/cache/CacheChild.cpp b/dom/cache/CacheChild.cpp index cc7e7056b261f..20ee44f1a88e6 100644 --- a/dom/cache/CacheChild.cpp +++ b/dom/cache/CacheChild.cpp @@ -124,7 +124,7 @@ CacheChild::StartDestroy() MOZ_ASSERT(!mListener); // Start actor destruction from parent process - unused << SendTeardown(); + Unused << SendTeardown(); } void diff --git a/dom/cache/CacheOpParent.cpp b/dom/cache/CacheOpParent.cpp index f0d3ca06d2b79..1077d4e8ab656 100644 --- a/dom/cache/CacheOpParent.cpp +++ b/dom/cache/CacheOpParent.cpp @@ -56,7 +56,7 @@ CacheOpParent::Execute(ManagerId* aManagerId) RefPtr manager; nsresult rv = Manager::GetOrCreate(aManagerId, getter_AddRefs(manager)); if (NS_WARN_IF(NS_FAILED(rv))) { - unused << Send__delete__(this, ErrorResult(rv), void_t()); + Unused << Send__delete__(this, ErrorResult(rv), void_t()); return; } @@ -144,7 +144,7 @@ CacheOpParent::OnPrincipalVerified(nsresult aRv, ManagerId* aManagerId) mVerifier = nullptr; if (NS_WARN_IF(NS_FAILED(aRv))) { - unused << Send__delete__(this, ErrorResult(aRv), void_t()); + Unused << Send__delete__(this, ErrorResult(aRv), void_t()); return; } @@ -165,7 +165,7 @@ CacheOpParent::OnOpComplete(ErrorResult&& aRv, const CacheOpResult& aResult, // Never send an op-specific result if we have an error. Instead, send // void_t() to ensure that we don't leak actors on the child side. if (NS_WARN_IF(aRv.Failed())) { - unused << Send__delete__(this, aRv, void_t()); + Unused << Send__delete__(this, aRv, void_t()); aRv.SuppressException(); // We serialiazed it, as best we could. return; } @@ -190,7 +190,7 @@ CacheOpParent::OnOpComplete(ErrorResult&& aRv, const CacheOpResult& aResult, result.Add(aSavedRequestList[i], aStreamList); } - unused << Send__delete__(this, aRv, result.SendAsOpResult()); + Unused << Send__delete__(this, aRv, result.SendAsOpResult()); } already_AddRefed diff --git a/dom/cache/CachePushStreamChild.cpp b/dom/cache/CachePushStreamChild.cpp index 0c5d909747627..5e67bd4e3012b 100644 --- a/dom/cache/CachePushStreamChild.cpp +++ b/dom/cache/CachePushStreamChild.cpp @@ -192,7 +192,7 @@ CachePushStreamChild::DoRead() // If we read any data from the stream, send it across. if (!buffer.IsEmpty()) { - unused << SendBuffer(buffer); + Unused << SendBuffer(buffer); } if (rv == NS_BASE_STREAM_WOULD_BLOCK) { @@ -255,7 +255,7 @@ CachePushStreamChild::OnEnd(nsresult aRv) } // This will trigger an ActorDestroy() from the parent side - unused << SendClose(aRv); + Unused << SendClose(aRv); } } // namespace cache diff --git a/dom/cache/CachePushStreamParent.cpp b/dom/cache/CachePushStreamParent.cpp index 9c145c2d5a97d..3690f8f7b4661 100644 --- a/dom/cache/CachePushStreamParent.cpp +++ b/dom/cache/CachePushStreamParent.cpp @@ -79,7 +79,7 @@ bool CachePushStreamParent::RecvClose(const nsresult& aRv) { mWriter->CloseWithStatus(aRv); - unused << Send__delete__(this); + Unused << Send__delete__(this); return true; } diff --git a/dom/cache/CacheStorage.cpp b/dom/cache/CacheStorage.cpp index 2b5947ad622e8..17d16118e6ff0 100644 --- a/dom/cache/CacheStorage.cpp +++ b/dom/cache/CacheStorage.cpp @@ -32,7 +32,7 @@ namespace mozilla { namespace dom { namespace cache { -using mozilla::unused; +using mozilla::Unused; using mozilla::ErrorResult; using mozilla::dom::workers::WorkerPrivate; using mozilla::ipc::BackgroundChild; diff --git a/dom/cache/CacheStorageChild.cpp b/dom/cache/CacheStorageChild.cpp index 9d05c112a8e4b..0d03f561ace62 100644 --- a/dom/cache/CacheStorageChild.cpp +++ b/dom/cache/CacheStorageChild.cpp @@ -53,7 +53,7 @@ CacheStorageChild::ExecuteOp(nsIGlobalObject* aGlobal, Promise* aPromise, nsISupports* aParent, const CacheOpArgs& aArgs) { mNumChildActors += 1; - unused << SendPCacheOpConstructor( + Unused << SendPCacheOpConstructor( new CacheOpChild(GetFeature(), aGlobal, aParent, aPromise), aArgs); } @@ -99,7 +99,7 @@ CacheStorageChild::StartDestroy() MOZ_ASSERT(!mListener); // Start actor destruction from parent process - unused << SendTeardown(); + Unused << SendTeardown(); } void diff --git a/dom/cache/CacheStorageParent.cpp b/dom/cache/CacheStorageParent.cpp index b4b83d1e3669f..1e4217e60d107 100644 --- a/dom/cache/CacheStorageParent.cpp +++ b/dom/cache/CacheStorageParent.cpp @@ -101,7 +101,7 @@ CacheStorageParent::RecvPCacheOpConstructor(PCacheOpParent* aActor, } if (NS_WARN_IF(NS_FAILED(mVerifiedStatus))) { - unused << CacheOpParent::Send__delete__(actor, ErrorResult(mVerifiedStatus), + Unused << CacheOpParent::Send__delete__(actor, ErrorResult(mVerifiedStatus), void_t()); return true; } diff --git a/dom/cache/CacheStreamControlChild.cpp b/dom/cache/CacheStreamControlChild.cpp index 78b12221dd028..3e23c5f2090f1 100644 --- a/dom/cache/CacheStreamControlChild.cpp +++ b/dom/cache/CacheStreamControlChild.cpp @@ -101,7 +101,7 @@ CacheStreamControlChild::SerializeFds(CacheReadStream* aReadStreamOut, if (!aFds.IsEmpty()) { fdSet = Manager()->SendPFileDescriptorSetConstructor(aFds[0]); for (uint32_t i = 1; i < aFds.Length(); ++i) { - unused << fdSet->SendAddFileDescriptor(aFds[i]); + Unused << fdSet->SendAddFileDescriptor(aFds[i]); } } @@ -128,14 +128,14 @@ CacheStreamControlChild::DeserializeFds(const CacheReadStream& aReadStream, fdSetActor->ForgetFileDescriptors(aFdsOut); MOZ_ASSERT(!aFdsOut.IsEmpty()); - unused << fdSetActor->Send__delete__(fdSetActor); + Unused << fdSetActor->Send__delete__(fdSetActor); } void CacheStreamControlChild::NoteClosedAfterForget(const nsID& aId) { NS_ASSERT_OWNINGTHREAD(CacheStreamControlChild); - unused << SendNoteClosed(aId); + Unused << SendNoteClosed(aId); // A stream has closed. If we delayed StartDestry() due to this stream // being read, then we should check to see if any of the remaining streams diff --git a/dom/cache/CacheStreamControlParent.cpp b/dom/cache/CacheStreamControlParent.cpp index 2aac608de5268..07a0341d064f9 100644 --- a/dom/cache/CacheStreamControlParent.cpp +++ b/dom/cache/CacheStreamControlParent.cpp @@ -61,7 +61,7 @@ CacheStreamControlParent::SerializeFds(CacheReadStream* aReadStreamOut, if (!aFds.IsEmpty()) { fdSet = Manager()->SendPFileDescriptorSetConstructor(aFds[0]); for (uint32_t i = 1; i < aFds.Length(); ++i) { - unused << fdSet->SendAddFileDescriptor(aFds[i]); + Unused << fdSet->SendAddFileDescriptor(aFds[i]); } } @@ -141,7 +141,7 @@ CacheStreamControlParent::Close(const nsID& aId) { NS_ASSERT_OWNINGTHREAD(CacheStreamControlParent); NotifyClose(aId); - unused << SendClose(aId); + Unused << SendClose(aId); } void @@ -149,7 +149,7 @@ CacheStreamControlParent::CloseAll() { NS_ASSERT_OWNINGTHREAD(CacheStreamControlParent); NotifyCloseAll(); - unused << SendCloseAll(); + Unused << SendCloseAll(); } void diff --git a/dom/cache/FileUtils.cpp b/dom/cache/FileUtils.cpp index c17cc38d11fdc..a7a4ef1bfffe6 100644 --- a/dom/cache/FileUtils.cpp +++ b/dom/cache/FileUtils.cpp @@ -187,7 +187,7 @@ BodyCancelWrite(nsIFile* aBaseDir, nsISupports* aCopyContext) MOZ_ASSERT(aCopyContext); nsresult rv = NS_CancelAsyncCopy(aCopyContext, NS_ERROR_ABORT); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); // The partially written file must be cleaned up after the async copy // makes its callback. diff --git a/dom/cache/Manager.cpp b/dom/cache/Manager.cpp index 95105eceaa110..dbf2f43d85002 100644 --- a/dom/cache/Manager.cpp +++ b/dom/cache/Manager.cpp @@ -138,7 +138,7 @@ class DeleteOrphanedBodyAction final : public Action } rv = BodyDeleteFiles(dbDir, mDeletedBodyIdList); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); aResolver->Resolve(rv); } @@ -897,7 +897,7 @@ class Manager::CachePutAllAction final : public DBAction } rv = trans.Commit(); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); DoResolve(rv); } diff --git a/dom/cache/ReadStream.cpp b/dom/cache/ReadStream.cpp index 2a05bdb29cd52..d4a74c0084f29 100644 --- a/dom/cache/ReadStream.cpp +++ b/dom/cache/ReadStream.cpp @@ -20,7 +20,7 @@ namespace mozilla { namespace dom { namespace cache { -using mozilla::unused; +using mozilla::Unused; using mozilla::ipc::FileDescriptor; // ---------------------------------------------------------------------------- diff --git a/dom/cache/TypeUtils.cpp b/dom/cache/TypeUtils.cpp index 63ac99f18cab9..fc9294c66ed28 100644 --- a/dom/cache/TypeUtils.cpp +++ b/dom/cache/TypeUtils.cpp @@ -78,7 +78,7 @@ SerializeNormalStream(nsIInputStream* aStream, CacheReadStream& aReadStreamOut) fdSet = manager->SendPFileDescriptorSetConstructor(fds[0]); for (uint32_t i = 1; i < fds.Length(); ++i) { - unused << fdSet->SendAddFileDescriptor(fds[i]); + Unused << fdSet->SendAddFileDescriptor(fds[i]); } } diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp index d59236870ede4..5c366bd1e8ed1 100644 --- a/dom/canvas/CanvasRenderingContext2D.cpp +++ b/dom/canvas/CanvasRenderingContext2D.cpp @@ -1026,7 +1026,7 @@ CanvasRenderingContext2D::ParseColor(const nsAString& aString, mCanvasElement, nullptr, presShell); } - unused << nsRuleNode::ComputeColor( + Unused << nsRuleNode::ComputeColor( value, presShell ? presShell->GetPresContext() : nullptr, parentContext, *aColor); } @@ -4888,7 +4888,7 @@ CanvasRenderingContext2D::DrawWindow(nsGlobalWindow& window, double x, } nsCOMPtr shell = presContext->PresShell(); - unused << shell->RenderDocument(r, renderDocFlags, backgroundColor, thebes); + Unused << shell->RenderDocument(r, renderDocFlags, backgroundColor, thebes); if (drawDT) { RefPtr snapshot = drawDT->Snapshot(); RefPtr data = snapshot->GetDataSurface(); diff --git a/dom/datastore/DataStoreService.cpp b/dom/datastore/DataStoreService.cpp index d9576fe6e92be..b7db6abe0fe30 100644 --- a/dom/datastore/DataStoreService.cpp +++ b/dom/datastore/DataStoreService.cpp @@ -1326,7 +1326,7 @@ DataStoreService::EnableDataStore(uint32_t aAppId, const nsAString& aName, ContentParent::GetAll(children); for (uint32_t i = 0; i < children.Length(); i++) { if (children[i]->NeedsDataStoreInfos()) { - unused << children[i]->SendDataStoreNotify(aAppId, nsAutoString(aName), + Unused << children[i]->SendDataStoreNotify(aAppId, nsAutoString(aName), nsAutoString(aManifestURL)); } } diff --git a/dom/devicestorage/DeviceStorageRequestParent.cpp b/dom/devicestorage/DeviceStorageRequestParent.cpp index 36b9b45c65009..e51aac823b53c 100644 --- a/dom/devicestorage/DeviceStorageRequestParent.cpp +++ b/dom/devicestorage/DeviceStorageRequestParent.cpp @@ -415,7 +415,7 @@ DeviceStorageRequestParent::PostFreeSpaceResultEvent::CancelableRun() { MOZ_ASSERT(NS_IsMainThread()); FreeSpaceStorageResponse response(mFreeSpace); - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } @@ -437,7 +437,7 @@ DeviceStorageRequestParent::PostUsedSpaceResultEvent::CancelableRun() { MOZ_ASSERT(NS_IsMainThread()); UsedSpaceStorageResponse response(mUsedSpace); - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } @@ -455,7 +455,7 @@ DeviceStorageRequestParent::PostErrorEvent::CancelableRun() { MOZ_ASSERT(NS_IsMainThread()); ErrorResponse response(mError); - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } @@ -472,7 +472,7 @@ DeviceStorageRequestParent::PostSuccessEvent::CancelableRun() { MOZ_ASSERT(NS_IsMainThread()); SuccessResponse response; - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } @@ -509,14 +509,14 @@ DeviceStorageRequestParent::PostBlobSuccessEvent::CancelableRun() { BlobParent* actor = cp->GetOrCreateActorForBlobImpl(blob); if (!actor) { ErrorResponse response(NS_LITERAL_STRING(POST_ERROR_EVENT_UNKNOWN)); - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } BlobResponse response; response.blobParent() = actor; - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } @@ -540,7 +540,7 @@ DeviceStorageRequestParent::PostEnumerationSuccessEvent::CancelableRun() { MOZ_ASSERT(NS_IsMainThread()); EnumerationResponse response(mStorageType, mRelPath, mPaths); - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } @@ -867,7 +867,7 @@ DeviceStorageRequestParent::PostPathResultEvent::CancelableRun() MOZ_ASSERT(NS_IsMainThread()); SuccessResponse response; - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } @@ -890,7 +890,7 @@ DeviceStorageRequestParent::PostFileDescriptorResultEvent::CancelableRun() MOZ_ASSERT(NS_IsMainThread()); FileDescriptorResponse response(mFileDescriptor); - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } @@ -918,7 +918,7 @@ DeviceStorageRequestParent::PostFormatResultEvent::CancelableRun() } FormatStorageResponse response(state); - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } @@ -946,7 +946,7 @@ DeviceStorageRequestParent::PostMountResultEvent::CancelableRun() } MountStorageResponse response(state); - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } @@ -974,7 +974,7 @@ DeviceStorageRequestParent::PostUnmountResultEvent::CancelableRun() } UnmountStorageResponse response(state); - unused << mParent->Send__delete__(mParent, response); + Unused << mParent->Send__delete__(mParent, response); return NS_OK; } diff --git a/dom/events/EventDispatcher.cpp b/dom/events/EventDispatcher.cpp index f7369e33bd6de..ec10403fcabb1 100644 --- a/dom/events/EventDispatcher.cpp +++ b/dom/events/EventDispatcher.cpp @@ -255,7 +255,7 @@ void EventTargetChainItem::PreHandleEvent(EventChainPreVisitor& aVisitor) { aVisitor.Reset(); - unused << mTarget->PreHandleEvent(aVisitor); + Unused << mTarget->PreHandleEvent(aVisitor); SetForceContentDispatch(aVisitor.mForceContentDispatch); SetWantsWillHandleEvent(aVisitor.mWantsWillHandleEvent); SetMayHaveListenerManager(aVisitor.mMayHaveListenerManager); diff --git a/dom/events/IMEStateManager.cpp b/dom/events/IMEStateManager.cpp index c2e4d858c6b8f..dda5a2b5c668b 100644 --- a/dom/events/IMEStateManager.cpp +++ b/dom/events/IMEStateManager.cpp @@ -417,7 +417,7 @@ IMEStateManager::OnChangeFocusInternal(nsPresContext* aPresContext, ("ISM: IMEStateManager::OnChangeFocusInternal(), notifying previous " "focused child process of parent process or another child process " "getting focus")); - unused << sActiveTabParent->SendStopIMEStateManagement(); + Unused << sActiveTabParent->SendStopIMEStateManagement(); } nsCOMPtr widget = @@ -445,7 +445,7 @@ IMEStateManager::OnChangeFocusInternal(nsPresContext* aPresContext, // to be restored by the child process asynchronously. Therefore, // some key events which are fired immediately after closing menu // may not be handled by IME. - unused << newTabParent-> + Unused << newTabParent-> SendMenuKeyboardListenerInstalled(sInstalledMenuKeyboardListener); setIMEState = sInstalledMenuKeyboardListener; } else if (focusActuallyChanging) { diff --git a/dom/events/TextComposition.cpp b/dom/events/TextComposition.cpp index f492a0a2602f8..534390f06faf4 100644 --- a/dom/events/TextComposition.cpp +++ b/dom/events/TextComposition.cpp @@ -140,7 +140,7 @@ TextComposition::OnCompositionEventDiscarded( if (mTabParent) { // The composition event should be discarded in the child process too. - unused << mTabParent->SendCompositionEvent(*aCompositionEvent); + Unused << mTabParent->SendCompositionEvent(*aCompositionEvent); } // XXX If composition events are discarded, should we dispatch them with @@ -218,7 +218,7 @@ TextComposition::DispatchCompositionEvent( // If the content is a container of TabParent, composition should be in the // remote process. if (mTabParent) { - unused << mTabParent->SendCompositionEvent(*aCompositionEvent); + Unused << mTabParent->SendCompositionEvent(*aCompositionEvent); aCompositionEvent->mFlags.mPropagationStopped = true; if (aCompositionEvent->CausesDOMTextEvent()) { mLastData = aCompositionEvent->mData; @@ -386,7 +386,7 @@ TextComposition::HandleSelectionEvent(nsPresContext* aPresContext, // If the content is a container of TabParent, composition should be in the // remote process. if (aTabParent) { - unused << aTabParent->SendSelectionEvent(*aSelectionEvent); + Unused << aTabParent->SendSelectionEvent(*aSelectionEvent); aSelectionEvent->mFlags.mPropagationStopped = true; return; } diff --git a/dom/fetch/FetchDriver.cpp b/dom/fetch/FetchDriver.cpp index 9d891b4a3be59..cdc62db8ecaf4 100644 --- a/dom/fetch/FetchDriver.cpp +++ b/dom/fetch/FetchDriver.cpp @@ -781,8 +781,8 @@ FetchDriver::AsyncOnChannelRedirect(nsIChannel* aOldChannel, // be ignored. MOZ_ASSERT(!mFoundOpaqueRedirect); mFoundOpaqueRedirect = true; - unused << OnStartRequest(aOldChannel, nullptr); - unused << OnStopRequest(aOldChannel, nullptr, NS_OK); + Unused << OnStartRequest(aOldChannel, nullptr); + Unused << OnStopRequest(aOldChannel, nullptr, NS_OK); aOldChannel->Cancel(NS_BINDING_FAILED); diff --git a/dom/fetch/Request.cpp b/dom/fetch/Request.cpp index f65b885e0b850..778bbd08a4b20 100644 --- a/dom/fetch/Request.cpp +++ b/dom/fetch/Request.cpp @@ -109,7 +109,7 @@ GetRequestURLFromDocument(nsIDocument* aDocument, const nsAString& aInput, // This fails with URIs with weird protocols, even when they are valid, // so we ignore the failure nsAutoCString credentials; - unused << resolvedURI->GetUserPass(credentials); + Unused << resolvedURI->GetUserPass(credentials); if (!credentials.IsEmpty()) { aRv.ThrowTypeError(&aInput); return; @@ -148,7 +148,7 @@ GetRequestURLFromChrome(const nsAString& aInput, nsAString& aRequestURL, // This fails with URIs with weird protocols, even when they are valid, // so we ignore the failure nsAutoCString credentials; - unused << uri->GetUserPass(credentials); + Unused << uri->GetUserPass(credentials); if (!credentials.IsEmpty()) { aRv.ThrowTypeError(&aInput); return; diff --git a/dom/filehandle/ActorsParent.cpp b/dom/filehandle/ActorsParent.cpp index 59108d0842f1e..e3413cff76c55 100644 --- a/dom/filehandle/ActorsParent.cpp +++ b/dom/filehandle/ActorsParent.cpp @@ -1003,7 +1003,7 @@ FileHandleThreadPool::Cleanup() MOZ_ASSERT(completeCallback); MOZ_ASSERT(completeCallback->mCallback); - unused << completeCallback->mCallback->Run(); + Unused << completeCallback->mCallback->Run(); } mCompleteCallbacks.Clear(); @@ -1651,7 +1651,7 @@ FileHandle::SendCompleteNotification(bool aAborted) AssertIsOnBackgroundThread(); if (!IsActorDestroyed()) { - unused << SendComplete(aAborted); + Unused << SendComplete(aAborted); } } @@ -2280,7 +2280,7 @@ ProgressRunnable::Run() { AssertIsOnBackgroundThread(); - unused << mCopyFileHandleOp->SendProgress(mProgress, mProgressMax); + Unused << mCopyFileHandleOp->SendProgress(mProgress, mProgressMax); mCopyFileHandleOp = nullptr; diff --git a/dom/filesystem/FileSystemTaskBase.cpp b/dom/filesystem/FileSystemTaskBase.cpp index 83d9a5b265f08..36ac33211eed5 100644 --- a/dom/filesystem/FileSystemTaskBase.cpp +++ b/dom/filesystem/FileSystemTaskBase.cpp @@ -111,7 +111,7 @@ FileSystemTaskBase::HandleResult() return; } if (mRequestParent && mRequestParent->IsRunning()) { - unused << mRequestParent->Send__delete__(mRequestParent, + Unused << mRequestParent->Send__delete__(mRequestParent, GetRequestResult()); } else { HandlerCallback(); diff --git a/dom/fmradio/ipc/FMRadioParent.cpp b/dom/fmradio/ipc/FMRadioParent.cpp index 0f5e59ef1e716..49abe4bc76ff9 100644 --- a/dom/fmradio/ipc/FMRadioParent.cpp +++ b/dom/fmradio/ipc/FMRadioParent.cpp @@ -98,41 +98,41 @@ FMRadioParent::Notify(const FMRadioEventType& aType) { switch (aType) { case FrequencyChanged: - unused << SendNotifyFrequencyChanged( + Unused << SendNotifyFrequencyChanged( IFMRadioService::Singleton()->GetFrequency()); break; case EnabledChanged: - unused << SendNotifyEnabledChanged( + Unused << SendNotifyEnabledChanged( IFMRadioService::Singleton()->IsEnabled(), IFMRadioService::Singleton()->GetFrequency()); break; case RDSEnabledChanged: - unused << SendNotifyRDSEnabledChanged( + Unused << SendNotifyRDSEnabledChanged( IFMRadioService::Singleton()->IsRDSEnabled()); break; case PIChanged: { Nullable pi = IFMRadioService::Singleton()->GetPi(); - unused << SendNotifyPIChanged(!pi.IsNull(), + Unused << SendNotifyPIChanged(!pi.IsNull(), pi.IsNull() ? 0 : pi.Value()); break; } case PTYChanged: { Nullable pty = IFMRadioService::Singleton()->GetPty(); - unused << SendNotifyPTYChanged(!pty.IsNull(), + Unused << SendNotifyPTYChanged(!pty.IsNull(), pty.IsNull() ? 0 : pty.Value()); break; } case PSChanged: { nsAutoString psname; IFMRadioService::Singleton()->GetPs(psname); - unused << SendNotifyPSChanged(psname); + Unused << SendNotifyPSChanged(psname); break; } case RadiotextChanged: { nsAutoString radiotext; IFMRadioService::Singleton()->GetRt(radiotext); - unused << SendNotifyRadiotextChanged(radiotext); + Unused << SendNotifyRadiotextChanged(radiotext); break; } case NewRDSGroup: { @@ -140,7 +140,7 @@ FMRadioParent::Notify(const FMRadioEventType& aType) DebugOnly rdsgroupset = IFMRadioService::Singleton()->GetRdsgroup(group); MOZ_ASSERT(rdsgroupset); - unused << SendNotifyNewRDSGroup(group); + Unused << SendNotifyNewRDSGroup(group); break; } default: diff --git a/dom/fmradio/ipc/FMRadioRequestParent.cpp b/dom/fmradio/ipc/FMRadioRequestParent.cpp index 0e0fe0c373f54..0ac19283a8631 100644 --- a/dom/fmradio/ipc/FMRadioRequestParent.cpp +++ b/dom/fmradio/ipc/FMRadioRequestParent.cpp @@ -34,7 +34,7 @@ FMRadioRequestParent::Run() MOZ_ASSERT(NS_IsMainThread(), "Wrong thread!"); if (!mActorDestroyed) { - unused << Send__delete__(this, mResponseType); + Unused << Send__delete__(this, mResponseType); } return NS_OK; diff --git a/dom/gamepad/GamepadFunctions.cpp b/dom/gamepad/GamepadFunctions.cpp index 5b8aa035d186f..06e31c177f6a8 100644 --- a/dom/gamepad/GamepadFunctions.cpp +++ b/dom/gamepad/GamepadFunctions.cpp @@ -29,7 +29,7 @@ NotifyGamepadChange(const T& aInfo) nsTArray t; ContentParent::GetAll(t); for(uint32_t i = 0; i < t.Length(); ++i) { - unused << t[i]->SendGamepadUpdate(e); + Unused << t[i]->SendGamepadUpdate(e); } // If we have a GamepadService in the main process, send directly to it. if (GamepadService::IsServiceRunning()) { diff --git a/dom/geolocation/nsGeolocation.cpp b/dom/geolocation/nsGeolocation.cpp index c22735ef5f9d4..e5826fb721a28 100644 --- a/dom/geolocation/nsGeolocation.cpp +++ b/dom/geolocation/nsGeolocation.cpp @@ -63,7 +63,7 @@ class nsIPrincipal; // the geolocation enabled setting #define GEO_SETTINGS_ENABLED "geolocation.enabled" -using mozilla::unused; // +using mozilla::Unused; // using namespace mozilla; using namespace mozilla::dom; @@ -1276,7 +1276,7 @@ Geolocation::RemoveRequest(nsGeolocationRequest* aRequest) (mPendingCallbacks.RemoveElement(aRequest) != mWatchingCallbacks.RemoveElement(aRequest)); - unused << requestWasKnown; + Unused << requestWasKnown; } NS_IMETHODIMP diff --git a/dom/geolocation/nsGeolocationSettings.cpp b/dom/geolocation/nsGeolocationSettings.cpp index fc1e5350fd877..2270cadb25723 100644 --- a/dom/geolocation/nsGeolocationSettings.cpp +++ b/dom/geolocation/nsGeolocationSettings.cpp @@ -37,7 +37,7 @@ #define GEO_ALA_TYPE_VALUE_FIXED "user-defined" #define GEO_ALA_TYPE_VALUE_NONE "no-location" -using mozilla::unused; +using mozilla::Unused; using namespace mozilla; using namespace mozilla::dom; diff --git a/dom/indexedDB/ActorsParent.cpp b/dom/indexedDB/ActorsParent.cpp index 9ce4d063281aa..1bfef18f14568 100644 --- a/dom/indexedDB/ActorsParent.cpp +++ b/dom/indexedDB/ActorsParent.cpp @@ -5313,7 +5313,7 @@ class ConnectionPool final void CloseDatabaseWhenIdle(const nsACString& aDatabaseId) { - unused << CloseDatabaseWhenIdleInternal(aDatabaseId); + Unused << CloseDatabaseWhenIdleInternal(aDatabaseId); } void @@ -9592,7 +9592,7 @@ RecvPIndexedDBPermissionRequestConstructor( } if (permission != PermissionRequestBase::kPermissionPrompt) { - unused << + Unused << PIndexedDBPermissionRequestParent::Send__delete__(actor, permission); } @@ -9850,7 +9850,7 @@ DatabaseConnection::RollbackWriteTransaction() // This may fail if SQLite already rolled back the transaction so ignore any // errors. - unused << stmt->Execute(); + Unused << stmt->Execute(); mInWriteTransaction = false; } @@ -9978,7 +9978,7 @@ DatabaseConnection::RollbackSavepoint() // This may fail if SQLite already rolled back the savepoint so ignore any // errors. - unused << stmt->Execute(); + Unused << stmt->Execute(); return NS_OK; } @@ -10068,7 +10068,7 @@ DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint) // Release the connection's normal transaction. It's possible that it could // fail, but that isn't a problem here. - unused << rollbackStmt->Execute(); + Unused << rollbackStmt->Execute(); mInReadTransaction = false; } @@ -10093,7 +10093,7 @@ DatabaseConnection::DoIdleProcessing(bool aNeedsCheckpoint) // Truncate the WAL if we were asked to or if we managed to free some space. if (aNeedsCheckpoint || freedSomePages) { rv = CheckpointInternal(CheckpointMode::Truncate); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); } // Finally try to restart the read transaction if we rolled it back earlier. @@ -10219,7 +10219,7 @@ DatabaseConnection::ReclaimFreePagesWhileIdle( MOZ_ASSERT(mInWriteTransaction); // Something failed, make sure we roll everything back. - unused << aRollbackStatement->Execute(); + Unused << aRollbackStatement->Execute(); mInWriteTransaction = false; @@ -11187,7 +11187,7 @@ ConnectionPool::Start(const nsID& aBackgroundChildLoggingId, } if (!transactionInfo->mBlockedOn.Count()) { - unused << ScheduleTransaction(transactionInfo, + Unused << ScheduleTransaction(transactionInfo, /* aFromQueuedTransactions */ false); } @@ -11280,7 +11280,7 @@ ConnectionPool::WaitForDatabasesToComplete(nsTArray&& aDatabaseIds, } if (mayRunCallbackImmediately) { - unused << aCallback->Run(); + Unused << aCallback->Run(); return; } @@ -11352,7 +11352,7 @@ ConnectionPool::Cleanup() MOZ_ASSERT(completeCallback); MOZ_ASSERT(completeCallback->mCallback); - unused << completeCallback->mCallback->Run(); + Unused << completeCallback->mCallback->Run(); } mCompleteCallbacks.Clear(); @@ -11878,7 +11878,7 @@ ConnectionPool::NoteClosedDatabase(DatabaseInfo* aDatabaseInfo) for (uint32_t index = 0, count = scheduledTransactions.Length(); index < count; index++) { - unused << ScheduleTransaction(scheduledTransactions[index], + Unused << ScheduleTransaction(scheduledTransactions[index], /* aFromQueuedTransactions */ false); } @@ -11943,7 +11943,7 @@ ConnectionPool::MaybeFireCallback(DatabasesCompleteCallback* aCallback) } } - unused << aCallback->mCallback->Run(); + Unused << aCallback->mCallback->Run(); return true; } @@ -12222,7 +12222,7 @@ FinishCallbackWrapper::Run() mHasRunOnce = true; - unused << mCallback->Run(); + Unused << mCallback->Run(); MOZ_ALWAYS_TRUE(NS_SUCCEEDED( mOwningThread->Dispatch(this, NS_DISPATCH_NORMAL))); @@ -12520,7 +12520,7 @@ TransactionInfo::Schedule() MOZ_ASSERT(connectionPool); connectionPool->AssertIsOnOwningThread(); - unused << + Unused << connectionPool->ScheduleTransaction(this, /* aFromQueuedTransactions */ false); } @@ -12910,7 +12910,7 @@ WaitForTransactionsHelper::WaitForTransactions() { MOZ_ASSERT(mState == State::Initial); - unused << this->Run(); + Unused << this->Run(); } void @@ -13142,7 +13142,7 @@ Database::Invalidate() mInvalidated = true; if (mActorWasAlive && !mActorDestroyed) { - unused << SendInvalidate(); + Unused << SendInvalidate(); } if (!Helper::InvalidateTransactions(mTransactions)) { @@ -14748,7 +14748,7 @@ NormalTransaction::SendCompleteNotification(nsresult aResult) AssertIsOnBackgroundThread(); if (!IsActorDestroyed()) { - unused << SendComplete(aResult); + Unused << SendComplete(aResult); } } @@ -15047,7 +15047,7 @@ VersionChangeTransaction::SendCompleteNotification(nsresult aResult) openDatabaseOp->mState = OpenDatabaseOp::State::SendingResults; if (!IsActorDestroyed()) { - unused << SendComplete(aResult); + Unused << SendComplete(aResult); } MOZ_ALWAYS_TRUE(NS_SUCCEEDED(openDatabaseOp->Run())); @@ -16843,7 +16843,7 @@ QuotaClient::PerformIdleMaintenance() if (kRunningXPCShellTests) { // We don't want user activity to impact this code if we're running tests. - unused << Observe(nullptr, OBSERVER_TOPIC_IDLE, nullptr); + Unused << Observe(nullptr, OBSERVER_TOPIC_IDLE, nullptr); } else if (!mIdleObserverRegistered) { nsCOMPtr idleService = do_GetService(kIdleServiceContractId); @@ -18009,7 +18009,7 @@ AutoProgressHandler::Unregister() nsCOMPtr oldHandler; nsresult rv = mConnection->RemoveProgressHandler(getter_AddRefs(oldHandler)); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); MOZ_ASSERT_IF(NS_SUCCEEDED(rv), oldHandler == this); } @@ -20932,7 +20932,7 @@ OpenDatabaseOp::SendBlockedNotification() MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose); if (!IsActorDestroyed()) { - unused << SendBlocked(mMetadata->mCommonMetadata.version()); + Unused << SendBlocked(mMetadata->mCommonMetadata.version()); } } @@ -21095,7 +21095,7 @@ OpenDatabaseOp::SendResults() response = ClampResultCode(mResultCode); } - unused << + Unused << PBackgroundIDBFactoryRequestParent::Send__delete__(this, response); } @@ -21821,7 +21821,7 @@ DeleteDatabaseOp::SendBlockedNotification() MOZ_ASSERT(mState == State::WaitingForOtherDatabasesToClose); if (!IsActorDestroyed()) { - unused << SendBlocked(0); + Unused << SendBlocked(0); } } @@ -21840,7 +21840,7 @@ DeleteDatabaseOp::SendResults() response = ClampResultCode(mResultCode); } - unused << + Unused << PBackgroundIDBFactoryRequestParent::Send__delete__(this, response); } @@ -22914,7 +22914,7 @@ CreateFileOp::SendResults() response = ClampResultCode(mResultCode); } - unused << + Unused << PBackgroundIDBDatabaseRequestParent::Send__delete__(this, response); } @@ -27272,7 +27272,7 @@ PermissionRequestHelper::OnPromptComplete(PermissionValue aPermissionValue) MOZ_ASSERT(NS_IsMainThread()); if (!mActorDestroyed) { - unused << + Unused << PIndexedDBPermissionRequestParent::Send__delete__(this, aPermissionValue); } } diff --git a/dom/ipc/Blob.cpp b/dom/ipc/Blob.cpp index 33bb3b8adc9e2..a687e8113363e 100644 --- a/dom/ipc/Blob.cpp +++ b/dom/ipc/Blob.cpp @@ -273,7 +273,7 @@ CancelableRunnableWrapper::Cancel() return NS_ERROR_UNEXPECTED; } - unused << Run(); + Unused << Run(); MOZ_ASSERT(!mRunnable); return NS_OK; @@ -4108,7 +4108,7 @@ BlobParent::NoteDyingRemoteBlobImpl() mBlobImpl = nullptr; mRemoteBlobImpl = nullptr; - unused << PBlobParent::Send__delete__(this); + Unused << PBlobParent::Send__delete__(this); } void diff --git a/dom/ipc/ColorPickerParent.cpp b/dom/ipc/ColorPickerParent.cpp index 000bb171b592a..3d68c21d1b6a8 100644 --- a/dom/ipc/ColorPickerParent.cpp +++ b/dom/ipc/ColorPickerParent.cpp @@ -12,7 +12,7 @@ #include "mozilla/dom/Element.h" #include "mozilla/dom/TabParent.h" -using mozilla::unused; +using mozilla::Unused; using namespace mozilla::dom; NS_IMPL_ISUPPORTS(ColorPickerParent::ColorPickerShownCallback, @@ -22,7 +22,7 @@ NS_IMETHODIMP ColorPickerParent::ColorPickerShownCallback::Update(const nsAString& aColor) { if (mColorPickerParent) { - unused << mColorPickerParent->SendUpdate(nsString(aColor)); + Unused << mColorPickerParent->SendUpdate(nsString(aColor)); } return NS_OK; } @@ -31,7 +31,7 @@ NS_IMETHODIMP ColorPickerParent::ColorPickerShownCallback::Done(const nsAString& aColor) { if (mColorPickerParent) { - unused << mColorPickerParent->Send__delete__(mColorPickerParent, + Unused << mColorPickerParent->Send__delete__(mColorPickerParent, nsString(aColor)); } return NS_OK; @@ -68,7 +68,7 @@ bool ColorPickerParent::RecvOpen() { if (!CreateColorPicker()) { - unused << Send__delete__(this, mInitialColor); + Unused << Send__delete__(this, mInitialColor); return true; } diff --git a/dom/ipc/ContentChild.cpp b/dom/ipc/ContentChild.cpp index 1fdf2184ab718..00bcbc7890bb5 100644 --- a/dom/ipc/ContentChild.cpp +++ b/dom/ipc/ContentChild.cpp @@ -349,7 +349,7 @@ class CycleCollectWithLogsChild final } // The XPCOM refcount drives the IPC lifecycle; see also // DeallocPCycleCollectWithLogsChild. - unused << Send__delete__(this); + Unused << Send__delete__(this); } nsresult UnimplementedProperty() @@ -813,7 +813,7 @@ ContentChild::ProvideWindowCommon(TabChild* aTabOpener, ipcContext->get_PopupIPCTabContext().opener() = aTabOpener; } - unused << SendPBrowserConstructor( + Unused << SendPBrowserConstructor( // We release this ref in DeallocPBrowserChild RefPtr(newChild).forget().take(), tabId, *ipcContext, aChromeFlags, @@ -2479,7 +2479,7 @@ OnFinishNuwaPreparation() } // This will create the actor. - unused << mozilla::dom::NuwaChild::GetSingleton(); + Unused << mozilla::dom::NuwaChild::GetSingleton(); MakeNuwaProcess(); } @@ -2604,17 +2604,17 @@ ContentChild::RecvFileSystemUpdate(const nsString& aFsName, } #else // Remove warnings about unused arguments - unused << aFsName; - unused << aVolumeName; - unused << aState; - unused << aMountGeneration; - unused << aIsMediaPresent; - unused << aIsSharing; - unused << aIsFormatting; - unused << aIsFake; - unused << aIsUnmounting; - unused << aIsRemovable; - unused << aIsHotSwappable; + Unused << aFsName; + Unused << aVolumeName; + Unused << aState; + Unused << aMountGeneration; + Unused << aIsMediaPresent; + Unused << aIsSharing; + Unused << aIsFormatting; + Unused << aIsFake; + Unused << aIsUnmounting; + Unused << aIsRemovable; + Unused << aIsHotSwappable; #endif return true; } @@ -2629,7 +2629,7 @@ ContentChild::RecvVolumeRemoved(const nsString& aFsName) } #else // Remove warnings about unused arguments - unused << aFsName; + Unused << aFsName; #endif return true; } @@ -2821,7 +2821,7 @@ ContentChild::RecvGatherProfile() profileCString = EmptyCString(); } - unused << SendProfile(profileCString); + Unused << SendProfile(profileCString); return true; } @@ -2932,7 +2932,7 @@ ContentChild::RecvShutdown() // Ignore errors here. If this fails, the parent will kill us after a // timeout. - unused << SendFinishShutdown(); + Unused << SendFinishShutdown(); return true; } diff --git a/dom/ipc/ContentParent.cpp b/dom/ipc/ContentParent.cpp index 8d66de816a428..ad47e27b86aca 100755 --- a/dom/ipc/ContentParent.cpp +++ b/dom/ipc/ContentParent.cpp @@ -538,13 +538,13 @@ class CycleCollectWithLogsParent final : public PCycleCollectWithLogsParent private: virtual bool RecvCloseGCLog() override { - unused << mSink->CloseGCLog(); + Unused << mSink->CloseGCLog(); return true; } virtual bool RecvCloseCCLog() override { - unused << mSink->CloseCCLog(); + Unused << mSink->CloseCCLog(); return true; } @@ -555,7 +555,7 @@ class CycleCollectWithLogsParent final : public PCycleCollectWithLogsParent nsCOMPtr gcLog, ccLog; mSink->GetGcLog(getter_AddRefs(gcLog)); mSink->GetCcLog(getter_AddRefs(ccLog)); - unused << mCallback->OnDump(gcLog, ccLog, /* parent = */ false); + Unused << mCallback->OnDump(gcLog, ccLog, /* parent = */ false); return true; } @@ -1534,7 +1534,7 @@ ContentParent::Init() // If accessibility is running in chrome process then start it in content // process. if (nsIPresShell::IsAccessibilityActive()) { - unused << SendActivateA11y(); + Unused << SendActivateA11y(); } #endif } @@ -1551,7 +1551,7 @@ ContentParent::ForwardKnownInfo() RefPtr vs = nsVolumeService::GetSingleton(); if (vs && !mIsForBrowser) { vs->GetVolumesForIPC(&volumeInfo); - unused << SendVolumes(volumeInfo); + Unused << SendVolumes(volumeInfo); } #endif /* MOZ_WIDGET_GONK */ @@ -2252,7 +2252,7 @@ ContentParent::NotifyTabDestroyed(const TabId& aTabId, // Need to close undeleted ContentPermissionRequestParents before tab is closed. for (auto& permissionRequestParent : parentArray) { nsTArray emptyChoices; - unused << PContentPermissionRequestParent::Send__delete__(permissionRequestParent, + Unused << PContentPermissionRequestParent::Send__delete__(permissionRequestParent, false, emptyChoices); } @@ -2533,7 +2533,7 @@ ContentParent::InitInternal(ProcessPriority aInitialPriority, nsCString vendor(gAppData->vendor); // Sending all information to content process. - unused << SendAppInfo(version, buildID, name, UAName, ID, vendor); + Unused << SendAppInfo(version, buildID, name, UAName, ID, vendor); } // Initialize the message manager (and load delayed scripts) now that we @@ -2573,7 +2573,7 @@ ContentParent::InitInternal(ProcessPriority aInitialPriority, if (gAppData) { // Sending all information to content process. - unused << SendAppInit(); + Unused << SendAppInit(); } nsStyleSheetService *sheetService = nsStyleSheetService::GetInstance(); @@ -2585,21 +2585,21 @@ ContentParent::InitInternal(ProcessPriority aInitialPriority, for (uint32_t i = 0; i < agentSheets.Length(); i++) { URIParams uri; SerializeURI(agentSheets[i]->GetSheetURI(), uri); - unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::AGENT_SHEET); + Unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::AGENT_SHEET); } nsCOMArray& userSheets = *sheetService->UserStyleSheets(); for (uint32_t i = 0; i < userSheets.Length(); i++) { URIParams uri; SerializeURI(userSheets[i]->GetSheetURI(), uri); - unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::USER_SHEET); + Unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::USER_SHEET); } nsCOMArray& authorSheets = *sheetService->AuthorStyleSheets(); for (uint32_t i = 0; i < authorSheets.Length(); i++) { URIParams uri; SerializeURI(authorSheets[i]->GetSheetURI(), uri); - unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::AUTHOR_SHEET); + Unused << SendLoadAndRegisterSheet(uri, nsIStyleSheetService::AUTHOR_SHEET); } } @@ -3071,7 +3071,7 @@ ContentParent::OnNewProcessCreated(uint32_t aPid, sNuwaPrefUpdates->Length() : 0; // Resend pref updates to the forked child. for (size_t i = 0; i < numNuwaPrefUpdates; i++) { - mozilla::unused << content->SendPreferenceUpdate(sNuwaPrefUpdates->ElementAt(i)); + mozilla::Unused << content->SendPreferenceUpdate(sNuwaPrefUpdates->ElementAt(i)); } // Update offline settings. @@ -3085,8 +3085,8 @@ ContentParent::OnNewProcessCreated(uint32_t aPid, RecvGetXPCOMProcessAttributes(&isOffline, &isConnected, &isLangRTL, &unusedDictionaries, &clipboardCaps, &domainPolicy, &initialData); - mozilla::unused << content->SendSetOffline(isOffline); - mozilla::unused << content->SendSetConnectivity(isConnected); + mozilla::Unused << content->SendSetOffline(isOffline); + mozilla::Unused << content->SendSetConnectivity(isConnected); MOZ_ASSERT(!clipboardCaps.supportsSelectionClipboard() && !clipboardCaps.supportsFindClipboard(), "Unexpected values"); @@ -3150,7 +3150,7 @@ ContentParent::Observe(nsISupports* aSubject, if (!strcmp(aTopic, "memory-pressure") && !StringEndsWith(nsDependentString(aData), NS_LITERAL_STRING("-no-forward"))) { - unused << SendFlushMemory(nsDependentString(aData)); + Unused << SendFlushMemory(nsDependentString(aData)); } // listening for remotePrefs... else if (!strcmp(aTopic, "nsPref:changed")) { @@ -3199,22 +3199,22 @@ ContentParent::Observe(nsISupports* aSubject, return NS_ERROR_NOT_AVAILABLE; } else if (!strcmp(aTopic, "child-gc-request")){ - unused << SendGarbageCollect(); + Unused << SendGarbageCollect(); } else if (!strcmp(aTopic, "child-cc-request")){ - unused << SendCycleCollect(); + Unused << SendCycleCollect(); } else if (!strcmp(aTopic, "child-mmu-request")){ - unused << SendMinimizeMemoryUsage(); + Unused << SendMinimizeMemoryUsage(); } else if (!strcmp(aTopic, "last-pb-context-exited")) { - unused << SendLastPrivateDocShellDestroyed(); + Unused << SendLastPrivateDocShellDestroyed(); } else if (!strcmp(aTopic, "file-watcher-update")) { nsCString creason; CopyUTF16toUTF8(aData, creason); DeviceStorageFile* file = static_cast(aSubject); - unused << SendFilePathUpdate(file->mStorageType, file->mStorageName, file->mPath, creason); + Unused << SendFilePathUpdate(file->mStorageType, file->mStorageName, file->mPath, creason); } #ifdef MOZ_WIDGET_GONK else if(!strcmp(aTopic, NS_VOLUME_STATE_CHANGED)) { @@ -3247,17 +3247,17 @@ ContentParent::Observe(nsISupports* aSubject, vol->GetIsRemovable(&isRemovable); vol->GetIsHotSwappable(&isHotSwappable); - unused << SendFileSystemUpdate(volName, mountPoint, state, + Unused << SendFileSystemUpdate(volName, mountPoint, state, mountGeneration, isMediaPresent, isSharing, isFormatting, isFake, isUnmounting, isRemovable, isHotSwappable); } else if (!strcmp(aTopic, "phone-state-changed")) { nsString state(aData); - unused << SendNotifyPhoneStateChange(state); + Unused << SendNotifyPhoneStateChange(state); } else if(!strcmp(aTopic, NS_VOLUME_REMOVED)) { nsString volName(aData); - unused << SendVolumeRemoved(volName); + Unused << SendVolumeRemoved(volName); } #endif #ifdef ACCESSIBILITY @@ -3265,11 +3265,11 @@ ContentParent::Observe(nsISupports* aSubject, // gets initiated in chrome process. else if (aData && (*aData == '1') && !strcmp(aTopic, "a11y-init-or-shutdown")) { - unused << SendActivateA11y(); + Unused << SendActivateA11y(); } #endif else if (!strcmp(aTopic, "app-theme-changed")) { - unused << SendOnAppThemeChanged(); + Unused << SendOnAppThemeChanged(); } #ifdef MOZ_ENABLE_PROFILER_SPS else if (!strcmp(aTopic, "profiler-started")) { @@ -3280,21 +3280,21 @@ ContentParent::Observe(nsISupports* aSubject, params->GetInterval(&interval); const nsTArray& features = params->GetFeatures(); const nsTArray& threadFilterNames = params->GetThreadFilterNames(); - unused << SendStartProfiler(entries, interval, features, threadFilterNames); + Unused << SendStartProfiler(entries, interval, features, threadFilterNames); } else if (!strcmp(aTopic, "profiler-stopped")) { - unused << SendStopProfiler(); + Unused << SendStopProfiler(); } else if (!strcmp(aTopic, "profiler-paused")) { - unused << SendPauseProfiler(true); + Unused << SendPauseProfiler(true); } else if (!strcmp(aTopic, "profiler-resumed")) { - unused << SendPauseProfiler(false); + Unused << SendPauseProfiler(false); } else if (!strcmp(aTopic, "profiler-subprocess-gather")) { mGatherer = static_cast(aSubject); mGatherer->WillGatherOOPProfile(); - unused << SendGatherProfile(); + Unused << SendGatherProfile(); } else if (!strcmp(aTopic, "profiler-subprocess")) { nsCOMPtr pse = do_QueryInterface(aSubject); @@ -3307,7 +3307,7 @@ ContentParent::Observe(nsISupports* aSubject, } #endif else if (!strcmp(aTopic, "gmp-changed")) { - unused << SendNotifyGMPsChanged(); + Unused << SendNotifyGMPsChanged(); } return NS_OK; } @@ -4229,7 +4229,7 @@ ContentParent::RecvGetSystemMemory(const uint64_t& aGetterId) memoryTotal = mozilla::hal::GetTotalSystemMemoryLevel(); #endif - unused << SendSystemMemoryAvailable(aGetterId, memoryTotal); + Unused << SendSystemMemoryAvailable(aGetterId, memoryTotal); return true; } @@ -4341,7 +4341,7 @@ bool ContentParent::RecvDisableNotifications(const IPC::Principal& aPrincipal) { if (HasNotificationPermission(aPrincipal)) { - unused << Notification::RemovePermission(aPrincipal); + Unused << Notification::RemovePermission(aPrincipal); } return true; } @@ -4350,7 +4350,7 @@ bool ContentParent::RecvOpenNotificationSettings(const IPC::Principal& aPrincipal) { if (HasNotificationPermission(aPrincipal)) { - unused << Notification::OpenSettings(aPrincipal); + Unused << Notification::OpenSettings(aPrincipal); } return true; } @@ -4504,7 +4504,7 @@ ContentParent::RecvSetGeolocationHigherAccuracy(const bool& aEnable) NS_IMETHODIMP ContentParent::HandleEvent(nsIDOMGeoPosition* postion) { - unused << SendGeolocationUpdate(GeoPosition(postion)); + Unused << SendGeolocationUpdate(GeoPosition(postion)); return NS_OK; } @@ -4515,7 +4515,7 @@ ContentParent::HandleEvent(nsIDOMGeoPositionError* postionError) nsresult rv; rv = postionError->GetCode(&errorCode); NS_ENSURE_SUCCESS(rv,rv); - unused << SendGeolocationError(errorCode); + Unused << SendGeolocationError(errorCode); return NS_OK; } @@ -5084,7 +5084,7 @@ ContentParent::NotifyUpdatedDictionaries() spellChecker->GetDictionaryList(&dictionaries); for (size_t i = 0; i < processes.Length(); ++i) { - unused << processes[i]->SendUpdateDictionaryList(dictionaries); + Unused << processes[i]->SendUpdateDictionaryList(dictionaries); } } @@ -5210,7 +5210,7 @@ ContentParent::RecvPOfflineCacheUpdateConstructor(POfflineCacheUpdateParent* aAc nsresult rv = update->Schedule(aManifestURI, aDocumentURI, aLoadingPrincipal, aStickDocument); if (NS_FAILED(rv) && IsAlive()) { // Inform the child of failure. - unused << update->SendFinish(false, false); + Unused << update->SendFinish(false, false); } return true; @@ -5289,7 +5289,7 @@ ContentParent::MaybeInvokeDragSession(TabParent* aParent) this); uint32_t action; session->GetDragAction(&action); - mozilla::unused << SendInvokeDragSession(dataTransfers, action); + mozilla::Unused << SendInvokeDragSession(dataTransfers, action); } } } @@ -5746,7 +5746,7 @@ NS_IMPL_ISUPPORTS(ParentIdleListener, nsIObserver) NS_IMETHODIMP ParentIdleListener::Observe(nsISupports*, const char* aTopic, const char16_t* aData) { - mozilla::unused << mParent->SendNotifyIdleObserver(mObserver, + mozilla::Unused << mParent->SendNotifyIdleObserver(mObserver, nsDependentCString(aTopic), nsDependentString(aData)); return NS_OK; diff --git a/dom/ipc/ContentProcess.cpp b/dom/ipc/ContentProcess.cpp index 9656424f9a5a4..e3f3ba8bf87ce 100644 --- a/dom/ipc/ContentProcess.cpp +++ b/dom/ipc/ContentProcess.cpp @@ -58,7 +58,7 @@ SetUpSandboxEnvironment() // Change the gecko defined temp directory to our low integrity one. // Undefine returns a failure if the property is not already set. - unused << nsDirectoryService::gService->Undefine(NS_OS_TEMP_DIR); + Unused << nsDirectoryService::gService->Undefine(NS_OS_TEMP_DIR); rv = nsDirectoryService::gService->Set(NS_OS_TEMP_DIR, lowIntegrityTemp); if (NS_WARN_IF(NS_FAILED(rv))) { return; diff --git a/dom/ipc/FilePickerParent.cpp b/dom/ipc/FilePickerParent.cpp index 03b522d2612ca..0883269f57dff 100644 --- a/dom/ipc/FilePickerParent.cpp +++ b/dom/ipc/FilePickerParent.cpp @@ -18,7 +18,7 @@ #include "mozilla/dom/TabParent.h" #include "mozilla/dom/ipc/BlobParent.h" -using mozilla::unused; +using mozilla::Unused; using namespace mozilla::dom; NS_IMPL_ISUPPORTS(FilePickerParent::FilePickerShownCallback, @@ -125,7 +125,7 @@ FilePickerParent::SendFiles(const nsTArray>& aBlobs) InputFiles inblobs; inblobs.blobsParent().SwapElements(blobs); - unused << Send__delete__(this, inblobs, mResult); + Unused << Send__delete__(this, inblobs, mResult); } void @@ -134,7 +134,7 @@ FilePickerParent::Done(int16_t aResult) mResult = aResult; if (mResult != nsIFilePicker::returnOK) { - unused << Send__delete__(this, void_t(), mResult); + Unused << Send__delete__(this, void_t(), mResult); return; } @@ -167,7 +167,7 @@ FilePickerParent::Done(int16_t aResult) mRunnable = new FileSizeAndDateRunnable(this, blobs); // Dispatch to background thread to do I/O: if (!mRunnable->Dispatch()) { - unused << Send__delete__(this, void_t(), nsIFilePicker::returnCancel); + Unused << Send__delete__(this, void_t(), nsIFilePicker::returnCancel); } } @@ -202,7 +202,7 @@ FilePickerParent::RecvOpen(const int16_t& aSelectedType, const nsString& aDisplayDirectory) { if (!CreateFilePicker()) { - unused << Send__delete__(this, void_t(), nsIFilePicker::returnCancel); + Unused << Send__delete__(this, void_t(), nsIFilePicker::returnCancel); return true; } diff --git a/dom/ipc/NuwaChild.cpp b/dom/ipc/NuwaChild.cpp index dfea80b1d09ba..edf8e95e9dfd5 100644 --- a/dom/ipc/NuwaChild.cpp +++ b/dom/ipc/NuwaChild.cpp @@ -239,7 +239,7 @@ OnNuwaProcessReady() NuwaChild* nuwaChild = NuwaChild::GetSingleton(); MOZ_ASSERT(nuwaChild); - mozilla::unused << nuwaChild->SendNotifyReady(); + mozilla::Unused << nuwaChild->SendNotifyReady(); } NS_EXPORT void diff --git a/dom/ipc/NuwaParent.cpp b/dom/ipc/NuwaParent.cpp index 9d0a6c6c84e81..e97ce4f8b3d04 100644 --- a/dom/ipc/NuwaParent.cpp +++ b/dom/ipc/NuwaParent.cpp @@ -125,7 +125,7 @@ NuwaParent::CloneProtocol(Channel* aChannel, actor->ActorConstructed(); // The actor can finally be deleted after fully constructed. - mozilla::unused << actor->Send__delete__(actor); + mozilla::Unused << actor->Send__delete__(actor); }); MOZ_ASSERT(nested); MOZ_ALWAYS_TRUE(NS_SUCCEEDED( @@ -232,7 +232,7 @@ NuwaParent::ForkNewProcess(uint32_t& aPid, RefPtr self = this; nsCOMPtr runnable = NS_NewRunnableFunction([self] () -> void { - mozilla::unused << self->SendFork(); + mozilla::Unused << self->SendFork(); }); MOZ_ASSERT(runnable); MOZ_ALWAYS_TRUE(NS_SUCCEEDED(mWorkerThread->Dispatch(runnable, diff --git a/dom/ipc/PreallocatedProcessManager.cpp b/dom/ipc/PreallocatedProcessManager.cpp index 487d8eafec24a..8bce3dc1a32c1 100644 --- a/dom/ipc/PreallocatedProcessManager.cpp +++ b/dom/ipc/PreallocatedProcessManager.cpp @@ -319,7 +319,7 @@ SendTestOnlyNotification(const char* aMessage) nsCOMPtr ppmm = do_GetService("@mozilla.org/parentprocessmessagemanager;1"); - mozilla::unused << ppmm->BroadcastAsyncMessage( + mozilla::Unused << ppmm->BroadcastAsyncMessage( message, JS::NullHandleValue, JS::NullHandleValue, cx, 1); } diff --git a/dom/ipc/ProcessHangMonitor.cpp b/dom/ipc/ProcessHangMonitor.cpp index 7c79a7e67380c..6b3602d46382e 100644 --- a/dom/ipc/ProcessHangMonitor.cpp +++ b/dom/ipc/ProcessHangMonitor.cpp @@ -350,7 +350,7 @@ HangMonitorChild::NotifySlowScriptAsync(TabId aTabId, unsigned aLineNo) { if (mIPCOpen) { - unused << SendHangEvidence(SlowScriptData(aTabId, aFileName, aLineNo)); + Unused << SendHangEvidence(SlowScriptData(aTabId, aFileName, aLineNo)); } } @@ -429,7 +429,7 @@ HangMonitorChild::NotifyPluginHangAsync(uint32_t aPluginId) // bounce back to parent on background thread if (mIPCOpen) { - unused << SendHangEvidence(PluginHangData(aPluginId)); + Unused << SendHangEvidence(PluginHangData(aPluginId)); } } @@ -623,7 +623,7 @@ HangMonitorParent::TerminateScript() MOZ_RELEASE_ASSERT(MessageLoop::current() == MonitorLoop()); if (mIPCOpen) { - unused << SendTerminateScript(); + Unused << SendTerminateScript(); } } @@ -633,7 +633,7 @@ HangMonitorParent::BeginStartingDebugger() MOZ_RELEASE_ASSERT(MessageLoop::current() == MonitorLoop()); if (mIPCOpen) { - unused << SendBeginStartingDebugger(); + Unused << SendBeginStartingDebugger(); } } @@ -643,7 +643,7 @@ HangMonitorParent::EndStartingDebugger() MOZ_RELEASE_ASSERT(MessageLoop::current() == MonitorLoop()); if (mIPCOpen) { - unused << SendEndStartingDebugger(); + Unused << SendEndStartingDebugger(); } } diff --git a/dom/ipc/ProcessPriorityManager.cpp b/dom/ipc/ProcessPriorityManager.cpp index 992cd4dd0c8d9..43a98345ea9fa 100644 --- a/dom/ipc/ProcessPriorityManager.cpp +++ b/dom/ipc/ProcessPriorityManager.cpp @@ -1159,11 +1159,11 @@ ParticularProcessPriorityManager::SetPriorityNow(ProcessPriority aPriority, ProcessPriorityManagerImpl::GetSingleton()-> NotifyProcessPriorityChanged(this, oldPriority); - unused << mContentParent->SendNotifyProcessPriorityChanged(mPriority); + Unused << mContentParent->SendNotifyProcessPriorityChanged(mPriority); } if (aPriority < PROCESS_PRIORITY_FOREGROUND) { - unused << mContentParent->SendFlushMemory(NS_LITERAL_STRING("lowering-priority")); + Unused << mContentParent->SendFlushMemory(NS_LITERAL_STRING("lowering-priority")); } FireTestOnlyObserverNotification("process-priority-set", @@ -1377,7 +1377,7 @@ ProcessLRUPool::CalculateLRULevel(uint32_t aLRU) // (End of buffer) int exp; - unused << frexp(static_cast(aLRU), &exp); + Unused << frexp(static_cast(aLRU), &exp); uint32_t level = std::max(exp - 1, 0); return std::min(mLRUPoolLevels - 1, level); diff --git a/dom/ipc/ScreenManagerParent.cpp b/dom/ipc/ScreenManagerParent.cpp index 9f41630860ae6..747d938fcffd0 100644 --- a/dom/ipc/ScreenManagerParent.cpp +++ b/dom/ipc/ScreenManagerParent.cpp @@ -26,7 +26,7 @@ ScreenManagerParent::ScreenManagerParent(uint32_t* aNumberOfScreens, MOZ_CRASH("Couldn't get nsIScreenManager from ScreenManagerParent."); } - unused << RecvRefresh(aNumberOfScreens, aSystemDefaultScale, aSuccess); + Unused << RecvRefresh(aNumberOfScreens, aSystemDefaultScale, aSuccess); } bool @@ -64,7 +64,7 @@ ScreenManagerParent::RecvScreenRefresh(const uint32_t& aId, } ScreenDetails details; - unused << ExtractScreenDetails(screen, details); + Unused << ExtractScreenDetails(screen, details); *aRetVal = details; *aSuccess = true; diff --git a/dom/ipc/TabChild.cpp b/dom/ipc/TabChild.cpp index 329e1ca131970..ca107d3972f55 100644 --- a/dom/ipc/TabChild.cpp +++ b/dom/ipc/TabChild.cpp @@ -395,7 +395,7 @@ class TabChild::DelayedDeleteRunnable final // Check in case ActorDestroy was called after RecvDestroy message. if (mTabChild->IPCOpen()) { - unused << PBrowserChild::Send__delete__(mTabChild); + Unused << PBrowserChild::Send__delete__(mTabChild); } mTabChild = nullptr; @@ -699,7 +699,7 @@ TabChild::Observe(nsISupports *aSubject, bool active = activeStr.EqualsLiteral("active"); if (active != mAudioChannelsActive[audioChannel]) { mAudioChannelsActive[audioChannel] = active; - unused << SendAudioChannelActivityNotification(audioChannel, active); + Unused << SendAudioChannelActivityNotification(audioChannel, active); } } @@ -943,7 +943,7 @@ NS_IMETHODIMP TabChild::SetDimensions(uint32_t aFlags, int32_t aX, int32_t aY, int32_t aCx, int32_t aCy) { - unused << PBrowserChild::SendSetDimensions(aFlags, aX, aY, aCx, aCy); + Unused << PBrowserChild::SendSetDimensions(aFlags, aX, aY, aCx, aCy); return NS_OK; } @@ -1992,7 +1992,7 @@ TabChild::RecvCompositionEvent(const WidgetCompositionEvent& event) WidgetCompositionEvent localEvent(event); localEvent.widget = mPuppetWidget; APZCCallbackHelper::DispatchWidgetEvent(localEvent); - unused << SendOnEventNeedingAckHandled(event.mMessage); + Unused << SendOnEventNeedingAckHandled(event.mMessage); return true; } @@ -2002,7 +2002,7 @@ TabChild::RecvSelectionEvent(const WidgetSelectionEvent& event) WidgetSelectionEvent localEvent(event); localEvent.widget = mPuppetWidget; APZCCallbackHelper::DispatchWidgetEvent(localEvent); - unused << SendOnEventNeedingAckHandled(event.mMessage); + Unused << SendOnEventNeedingAckHandled(event.mMessage); return true; } diff --git a/dom/ipc/TabParent.cpp b/dom/ipc/TabParent.cpp index c60693491d5b5..1e07d16332e56 100644 --- a/dom/ipc/TabParent.cpp +++ b/dom/ipc/TabParent.cpp @@ -184,7 +184,7 @@ class OpenFileAndSendFDRunnable : public nsRunnable // Our TabParent may have been destroyed already. If so, don't send any // fds over, just go back to the IO thread and close them. if (!tabParent->IsDestroyed()) { - mozilla::unused << tabParent->SendCacheFileDescriptor(mPath, fd); + mozilla::Unused << tabParent->SendCacheFileDescriptor(mPath, fd); } if (!mFD) { @@ -232,7 +232,7 @@ class OpenFileAndSendFDRunnable : public nsRunnable // Intentionally leak the runnable (but not the fd) rather // than crash when trying to release a main thread object // off the main thread. - mozilla::unused << mTabParent.forget(); + mozilla::Unused << mTabParent.forget(); CloseFile(); } } @@ -549,7 +549,7 @@ TabParent::DestroyInternal() // If this fails, it's most likely due to a content-process crash, // and auto-cleanup will kick in. Otherwise, the child side will // destroy itself and send back __delete__(). - unused << SendDestroy(); + Unused << SendDestroy(); if (RenderFrameParent* frame = GetRenderFrame()) { RemoveTabParentFromTable(frame->GetLayersId()); @@ -769,7 +769,7 @@ TabParent::LoadURL(nsIURI* aURI) if (mSendOfflineStatus && NS_IsAppOffline(appId)) { // If the app is offline in the parent process // pass that state to the child process as well - unused << SendAppOfflineStatus(appId, true); + Unused << SendAppOfflineStatus(appId, true); } mSendOfflineStatus = false; @@ -779,7 +779,7 @@ TabParent::LoadURL(nsIURI* aURI) return; } - unused << SendLoadURL(spec, configuration, GetShowInfo()); + Unused << SendLoadURL(spec, configuration, GetShowInfo()); // If this app is a packaged app then we can speed startup by sending over // the file descriptor for the "application.zip" file that it will @@ -824,7 +824,7 @@ TabParent::LoadURL(nsIURI* aURI) if (cachedFd) { FileDescriptor::PlatformHandleType handle = FileDescriptor::PlatformHandleType(PR_FileDesc2NativeHandle(cachedFd)); - unused << SendCacheFileDescriptor(path, FileDescriptor(handle)); + Unused << SendCacheFileDescriptor(path, FileDescriptor(handle)); } else #endif { @@ -863,11 +863,11 @@ TabParent::Show(const ScreenIntSize& size, bool aParentIsActive) &success); MOZ_ASSERT(success); AddTabParentToTable(layersId, this); - unused << SendPRenderFrameConstructor(renderFrame); + Unused << SendPRenderFrameConstructor(renderFrame); } } - unused << SendShow(size, GetShowInfo(), textureFactoryIdentifier, + Unused << SendShow(size, GetShowInfo(), textureFactoryIdentifier, layersId, renderFrame, aParentIsActive); } @@ -962,7 +962,7 @@ TabParent::UpdateDimensions(const nsIntRect& rect, const ScreenIntSize& size) CSSRect unscaledRect = devicePixelRect / widgetScale; CSSSize unscaledSize = devicePixelSize / widgetScale; - unused << SendUpdateDimensions(unscaledRect, unscaledSize, + Unused << SendUpdateDimensions(unscaledRect, unscaledSize, widget->SizeMode(), orientation, chromeOffset); } @@ -972,7 +972,7 @@ void TabParent::UpdateFrame(const FrameMetrics& aFrameMetrics) { if (!mIsDestroyed) { - unused << SendUpdateFrame(aFrameMetrics); + Unused << SendUpdateFrame(aFrameMetrics); } } @@ -988,7 +988,7 @@ TabParent::UIResolutionChanged() // fails to cache the values, then mDefaultScale.scale might be invalid. // We don't want to send that value to content. Just send -1 for it too in // that case. - unused << SendUIResolutionChanged(mDPI, mDPI < 0 ? -1.0 : mDefaultScale.scale); + Unused << SendUIResolutionChanged(mDPI, mDPI < 0 ? -1.0 : mDefaultScale.scale); } } @@ -1001,7 +1001,7 @@ TabParent::ThemeChanged() // LookAndFeel should have the up-to-date values, which we now // send down to the child. We do this for every remote tab for now, // but bug 1156934 has been filed to do it once per content process. - unused << SendThemeChanged(LookAndFeel::GetIntCache()); + Unused << SendThemeChanged(LookAndFeel::GetIntCache()); } } @@ -1011,7 +1011,7 @@ TabParent::HandleAccessKey(nsTArray& aCharCodes, const int32_t& aModifierMask) { if (!mIsDestroyed) { - unused << SendHandleAccessKey(aCharCodes, aIsTrusted, aModifierMask); + Unused << SendHandleAccessKey(aCharCodes, aIsTrusted, aModifierMask); } } @@ -1020,7 +1020,7 @@ TabParent::RequestFlingSnap(const FrameMetrics::ViewID& aScrollId, const mozilla::CSSPoint& aDestination) { if (!mIsDestroyed) { - unused << SendRequestFlingSnap(aScrollId, aDestination); + Unused << SendRequestFlingSnap(aScrollId, aDestination); } } @@ -1028,7 +1028,7 @@ void TabParent::AcknowledgeScrollUpdate(const ViewID& aScrollId, const uint32_t& aScrollGeneration) { if (!mIsDestroyed) { - unused << SendAcknowledgeScrollUpdate(aScrollId, aScrollGeneration); + Unused << SendAcknowledgeScrollUpdate(aScrollId, aScrollGeneration); } } @@ -1037,7 +1037,7 @@ void TabParent::HandleDoubleTap(const CSSPoint& aPoint, const ScrollableLayerGuid &aGuid) { if (!mIsDestroyed) { - unused << SendHandleDoubleTap(aPoint, aModifiers, aGuid); + Unused << SendHandleDoubleTap(aPoint, aModifiers, aGuid); } } @@ -1046,7 +1046,7 @@ void TabParent::HandleSingleTap(const CSSPoint& aPoint, const ScrollableLayerGuid &aGuid) { if (!mIsDestroyed) { - unused << SendHandleSingleTap(aPoint, aModifiers, aGuid); + Unused << SendHandleSingleTap(aPoint, aModifiers, aGuid); } } @@ -1056,7 +1056,7 @@ void TabParent::HandleLongTap(const CSSPoint& aPoint, uint64_t aInputBlockId) { if (!mIsDestroyed) { - unused << SendHandleLongTap(aPoint, aModifiers, aGuid, aInputBlockId); + Unused << SendHandleLongTap(aPoint, aModifiers, aGuid, aInputBlockId); } } @@ -1065,7 +1065,7 @@ void TabParent::NotifyAPZStateChange(ViewID aViewId, int aArg) { if (!mIsDestroyed) { - unused << SendNotifyAPZStateChange(aViewId, aChange, aArg); + Unused << SendNotifyAPZStateChange(aViewId, aChange, aArg); } } @@ -1073,7 +1073,7 @@ void TabParent::NotifyMouseScrollTestEvent(const ViewID& aScrollId, const nsString& aEvent) { if (!mIsDestroyed) { - unused << SendMouseScrollTestEvent(aScrollId, aEvent); + Unused << SendMouseScrollTestEvent(aScrollId, aEvent); } } @@ -1081,7 +1081,7 @@ void TabParent::NotifyFlushComplete() { if (!mIsDestroyed) { - unused << SendNotifyFlushComplete(); + Unused << SendNotifyFlushComplete(); } } @@ -1089,7 +1089,7 @@ void TabParent::Activate() { if (!mIsDestroyed) { - unused << SendActivate(); + Unused << SendActivate(); } } @@ -1097,7 +1097,7 @@ void TabParent::Deactivate() { if (!mIsDestroyed) { - unused << SendDeactivate(); + Unused << SendDeactivate(); } } @@ -1288,7 +1288,7 @@ TabParent::SendMouseEvent(const nsAString& aType, float aX, float aY, int32_t aModifiers, bool aIgnoreRootScrollFrame) { if (!mIsDestroyed) { - unused << PBrowserParent::SendMouseEvent(nsString(aType), aX, aY, + Unused << PBrowserParent::SendMouseEvent(nsString(aType), aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame); } @@ -1302,7 +1302,7 @@ TabParent::SendKeyEvent(const nsAString& aType, bool aPreventDefault) { if (!mIsDestroyed) { - unused << PBrowserParent::SendKeyEvent(nsString(aType), aKeyCode, aCharCode, + Unused << PBrowserParent::SendKeyEvent(nsString(aType), aKeyCode, aCharCode, aModifiers, aPreventDefault); } } @@ -2909,7 +2909,7 @@ NS_IMETHODIMP TabParent::SetDocShellIsActive(bool isActive) { mDocShellIsActive = isActive; - unused << SendSetDocShellIsActive(isActive); + Unused << SendSetDocShellIsActive(isActive); return NS_OK; } @@ -2935,7 +2935,7 @@ TabParent::SuppressDisplayport(bool aEnabled) MOZ_ASSERT(mActiveSupressDisplayportCount >= 0); - unused << SendSuppressDisplayport(aEnabled); + Unused << SendSuppressDisplayport(aEnabled); return NS_OK; } @@ -2962,7 +2962,7 @@ TabParent::SetHasContentOpener(bool aHasContentOpener) NS_IMETHODIMP TabParent::NavigateByKey(bool aForward, bool aForDocumentNavigation) { - unused << SendNavigateByKey(aForward, aForDocumentNavigation); + Unused << SendNavigateByKey(aForward, aForDocumentNavigation); return NS_OK; } @@ -3251,7 +3251,7 @@ TabParent::RecvInvokeDragSession(nsTArray&& aTransfers, nsIPresShell* shell = mFrameElement->OwnerDoc()->GetShell(); if (!shell) { if (Manager()->IsContentParent()) { - unused << Manager()->AsContentParent()->SendEndDragSession(true, true); + Unused << Manager()->AsContentParent()->SendEndDragSession(true, true); } return true; } diff --git a/dom/ipc/nsIContentParent.cpp b/dom/ipc/nsIContentParent.cpp index 83d9f2ef5ccf5..78ec33c09cd5e 100644 --- a/dom/ipc/nsIContentParent.cpp +++ b/dom/ipc/nsIContentParent.cpp @@ -122,9 +122,9 @@ nsIContentParent::AllocPBrowserParent(const TabId& aTabId, const bool& aIsForApp, const bool& aIsForBrowser) { - unused << aCpId; - unused << aIsForApp; - unused << aIsForBrowser; + Unused << aCpId; + Unused << aIsForApp; + Unused << aIsForBrowser; if (!CanOpenBrowser(aContext)) { return nullptr; diff --git a/dom/media/MediaManager.cpp b/dom/media/MediaManager.cpp index d770a7056c177..730f669d4f647 100644 --- a/dom/media/MediaManager.cpp +++ b/dom/media/MediaManager.cpp @@ -1691,7 +1691,7 @@ MediaManager::NotifyRecordingStatusChange(nsPIDOMWindow* aWindow, // Forward recording events to parent process. // The events are gathered in chrome process and used for recording indicator if (!XRE_IsParentProcess()) { - unused << + Unused << dom::ContentChild::GetSingleton()->SendRecordingDeviceEvents(aMsg, requestURL, aIsAudio, diff --git a/dom/media/MediaManager.h b/dom/media/MediaManager.h index 2244643779c18..0454f7a769afe 100644 --- a/dom/media/MediaManager.h +++ b/dom/media/MediaManager.h @@ -134,7 +134,7 @@ class GetUserMediaCallbackMediaStreamListener : public MediaStreamListener ~GetUserMediaCallbackMediaStreamListener() { - unused << mMediaThread; + Unused << mMediaThread; // It's OK to release mStream on any thread; they have thread-safe // refcounts. } diff --git a/dom/media/MediaStreamGraph.cpp b/dom/media/MediaStreamGraph.cpp index 232cdfe2927d8..2816d94f3e631 100644 --- a/dom/media/MediaStreamGraph.cpp +++ b/dom/media/MediaStreamGraph.cpp @@ -2510,7 +2510,7 @@ ProcessedMediaStream::AllocateInputPort(MediaStream* aStream, TrackID aTrackID, mPort->Init(); // The graph holds its reference implicitly mPort->GraphImpl()->SetStreamOrderDirty(); - unused << mPort.forget(); + Unused << mPort.forget(); } virtual void RunDuringShutdown() { diff --git a/dom/media/gmp/GMPAudioDecoderChild.cpp b/dom/media/gmp/GMPAudioDecoderChild.cpp index 90a2a861a440e..2601055291835 100644 --- a/dom/media/gmp/GMPAudioDecoderChild.cpp +++ b/dom/media/gmp/GMPAudioDecoderChild.cpp @@ -52,7 +52,7 @@ GMPAudioDecoderChild::Decoded(GMPAudioSamples* aDecodedSamples) samples.mChannelCount() = aDecodedSamples->Channels(); samples.mSamplesPerSecond() = aDecodedSamples->Rate(); - unused << SendDecoded(samples); + Unused << SendDecoded(samples); aDecodedSamples->Destroy(); } @@ -62,7 +62,7 @@ GMPAudioDecoderChild::InputDataExhausted() { MOZ_ASSERT(mPlugin->GMPMessageLoop() == MessageLoop::current()); - unused << SendInputDataExhausted(); + Unused << SendInputDataExhausted(); } void @@ -70,7 +70,7 @@ GMPAudioDecoderChild::DrainComplete() { MOZ_ASSERT(mPlugin->GMPMessageLoop() == MessageLoop::current()); - unused << SendDrainComplete(); + Unused << SendDrainComplete(); } void @@ -78,7 +78,7 @@ GMPAudioDecoderChild::ResetComplete() { MOZ_ASSERT(mPlugin->GMPMessageLoop() == MessageLoop::current()); - unused << SendResetComplete(); + Unused << SendResetComplete(); } void @@ -86,7 +86,7 @@ GMPAudioDecoderChild::Error(GMPErr aError) { MOZ_ASSERT(mPlugin->GMPMessageLoop() == MessageLoop::current()); - unused << SendError(aError); + Unused << SendError(aError); } bool @@ -163,7 +163,7 @@ GMPAudioDecoderChild::RecvDecodingComplete() mPlugin = nullptr; - unused << Send__delete__(this); + Unused << Send__delete__(this); return true; } diff --git a/dom/media/gmp/GMPAudioDecoderParent.cpp b/dom/media/gmp/GMPAudioDecoderParent.cpp index cc6c535d65c87..b9a8cba8d5dfb 100644 --- a/dom/media/gmp/GMPAudioDecoderParent.cpp +++ b/dom/media/gmp/GMPAudioDecoderParent.cpp @@ -196,7 +196,7 @@ GMPAudioDecoderParent::Shutdown() mIsOpen = false; if (!mActorDestroyed) { - unused << SendDecodingComplete(); + Unused << SendDecodingComplete(); } return NS_OK; diff --git a/dom/media/gmp/GMPContentParent.cpp b/dom/media/gmp/GMPContentParent.cpp index e85f29518705a..b238445f8965d 100644 --- a/dom/media/gmp/GMPContentParent.cpp +++ b/dom/media/gmp/GMPContentParent.cpp @@ -95,7 +95,7 @@ GMPContentParent::VideoDecoderDestroyed(GMPVideoDecoderParent* aDecoder) MOZ_ASSERT(GMPThread() == NS_GetCurrentThread()); // If the constructor fails, we'll get called before it's added - unused << NS_WARN_IF(!mVideoDecoders.RemoveElement(aDecoder)); + Unused << NS_WARN_IF(!mVideoDecoders.RemoveElement(aDecoder)); CloseIfUnused(); } @@ -105,7 +105,7 @@ GMPContentParent::VideoEncoderDestroyed(GMPVideoEncoderParent* aEncoder) MOZ_ASSERT(GMPThread() == NS_GetCurrentThread()); // If the constructor fails, we'll get called before it's added - unused << NS_WARN_IF(!mVideoEncoders.RemoveElement(aEncoder)); + Unused << NS_WARN_IF(!mVideoEncoders.RemoveElement(aEncoder)); CloseIfUnused(); } diff --git a/dom/media/gmp/GMPDecryptorChild.cpp b/dom/media/gmp/GMPDecryptorChild.cpp index 0c7e1356ea81a..590f2fc544dbd 100644 --- a/dom/media/gmp/GMPDecryptorChild.cpp +++ b/dom/media/gmp/GMPDecryptorChild.cpp @@ -360,7 +360,7 @@ GMPDecryptorChild::RecvDecryptingComplete() session->DecryptingComplete(); - unused << Send__delete__(this); + Unused << Send__delete__(this); return true; } diff --git a/dom/media/gmp/GMPDecryptorParent.cpp b/dom/media/gmp/GMPDecryptorParent.cpp index ade26dd7f4d6d..49a2807a1c2fa 100644 --- a/dom/media/gmp/GMPDecryptorParent.cpp +++ b/dom/media/gmp/GMPDecryptorParent.cpp @@ -73,7 +73,7 @@ GMPDecryptorParent::CreateSession(uint32_t aCreateSessionToken, } // Caller should ensure parameters passed in from JS are valid. MOZ_ASSERT(!aInitDataType.IsEmpty() && !aInitData.IsEmpty()); - unused << SendCreateSession(aCreateSessionToken, aPromiseId, aInitDataType, aInitData, aSessionType); + Unused << SendCreateSession(aCreateSessionToken, aPromiseId, aInitDataType, aInitData, aSessionType); } void @@ -88,7 +88,7 @@ GMPDecryptorParent::LoadSession(uint32_t aPromiseId, } // Caller should ensure parameters passed in from JS are valid. MOZ_ASSERT(!aSessionId.IsEmpty()); - unused << SendLoadSession(aPromiseId, aSessionId); + Unused << SendLoadSession(aPromiseId, aSessionId); } void @@ -105,7 +105,7 @@ GMPDecryptorParent::UpdateSession(uint32_t aPromiseId, } // Caller should ensure parameters passed in from JS are valid. MOZ_ASSERT(!aSessionId.IsEmpty() && !aResponse.IsEmpty()); - unused << SendUpdateSession(aPromiseId, aSessionId, aResponse); + Unused << SendUpdateSession(aPromiseId, aSessionId, aResponse); } void @@ -121,7 +121,7 @@ GMPDecryptorParent::CloseSession(uint32_t aPromiseId, } // Caller should ensure parameters passed in from JS are valid. MOZ_ASSERT(!aSessionId.IsEmpty()); - unused << SendCloseSession(aPromiseId, aSessionId); + Unused << SendCloseSession(aPromiseId, aSessionId); } void @@ -137,7 +137,7 @@ GMPDecryptorParent::RemoveSession(uint32_t aPromiseId, } // Caller should ensure parameters passed in from JS are valid. MOZ_ASSERT(!aSessionId.IsEmpty()); - unused << SendRemoveSession(aPromiseId, aSessionId); + Unused << SendRemoveSession(aPromiseId, aSessionId); } void @@ -153,7 +153,7 @@ GMPDecryptorParent::SetServerCertificate(uint32_t aPromiseId, } // Caller should ensure parameters passed in from JS are valid. MOZ_ASSERT(!aServerCert.IsEmpty()); - unused << SendSetServerCertificate(aPromiseId, aServerCert); + Unused << SendSetServerCertificate(aPromiseId, aServerCert); } void @@ -177,7 +177,7 @@ GMPDecryptorParent::Decrypt(uint32_t aId, aCrypto.mEncryptedSizes, aCrypto.mSessionIds); - unused << SendDecrypt(aId, aBuffer, data); + Unused << SendDecrypt(aId, aBuffer, data); } bool @@ -413,7 +413,7 @@ GMPDecryptorParent::Shutdown() mIsOpen = false; if (!mActorDestroyed) { - unused << SendDecryptingComplete(); + Unused << SendDecryptingComplete(); } } diff --git a/dom/media/gmp/GMPParent.cpp b/dom/media/gmp/GMPParent.cpp index c3f2b25e4ffc8..1593f0e28545c 100644 --- a/dom/media/gmp/GMPParent.cpp +++ b/dom/media/gmp/GMPParent.cpp @@ -122,7 +122,7 @@ void GMPParent::Crash() { if (mState != GMPStateNotLoaded) { - unused << SendCrashPluginNow(); + Unused << SendCrashPluginNow(); } } @@ -233,7 +233,7 @@ GMPParent::EnsureAsyncShutdownTimeoutSet() rv = mAsyncShutdownTimeout->InitWithFuncCallback( &AbortWaitingForGMPAsyncShutdown, this, timeout, nsITimer::TYPE_ONE_SHOT); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); return rv; } diff --git a/dom/media/gmp/GMPStorageParent.cpp b/dom/media/gmp/GMPStorageParent.cpp index c4f04ede0863a..2ec2210772d92 100644 --- a/dom/media/gmp/GMPStorageParent.cpp +++ b/dom/media/gmp/GMPStorageParent.cpp @@ -620,21 +620,21 @@ GMPStorageParent::RecvOpen(const nsCString& aRecordName) // or shared across origin. LOGD(("GMPStorageParent[%p]::RecvOpen(record='%s') failed; null nodeId", this, aRecordName.get())); - unused << SendOpenComplete(aRecordName, GMPGenericErr); + Unused << SendOpenComplete(aRecordName, GMPGenericErr); return true; } if (aRecordName.IsEmpty()) { LOGD(("GMPStorageParent[%p]::RecvOpen(record='%s') failed; record name empty", this, aRecordName.get())); - unused << SendOpenComplete(aRecordName, GMPGenericErr); + Unused << SendOpenComplete(aRecordName, GMPGenericErr); return true; } if (mStorage->IsOpen(aRecordName)) { LOGD(("GMPStorageParent[%p]::RecvOpen(record='%s') failed; record in use", this, aRecordName.get())); - unused << SendOpenComplete(aRecordName, GMPRecordInUse); + Unused << SendOpenComplete(aRecordName, GMPRecordInUse); return true; } @@ -642,7 +642,7 @@ GMPStorageParent::RecvOpen(const nsCString& aRecordName) MOZ_ASSERT(GMP_FAILED(err) || mStorage->IsOpen(aRecordName)); LOGD(("GMPStorageParent[%p]::RecvOpen(record='%s') complete; rv=%d", this, aRecordName.get(), err)); - unused << SendOpenComplete(aRecordName, err); + Unused << SendOpenComplete(aRecordName, err); return true; } @@ -661,12 +661,12 @@ GMPStorageParent::RecvRead(const nsCString& aRecordName) if (!mStorage->IsOpen(aRecordName)) { LOGD(("GMPStorageParent[%p]::RecvRead(record='%s') failed; record not open", this, aRecordName.get())); - unused << SendReadComplete(aRecordName, GMPClosedErr, data); + Unused << SendReadComplete(aRecordName, GMPClosedErr, data); } else { GMPErr rv = mStorage->Read(aRecordName, data); LOGD(("GMPStorageParent[%p]::RecvRead(record='%s') read %d bytes rv=%d", this, aRecordName.get(), data.Length(), rv)); - unused << SendReadComplete(aRecordName, rv, data); + Unused << SendReadComplete(aRecordName, rv, data); } return true; @@ -686,14 +686,14 @@ GMPStorageParent::RecvWrite(const nsCString& aRecordName, if (!mStorage->IsOpen(aRecordName)) { LOGD(("GMPStorageParent[%p]::RecvWrite(record='%s') failed record not open", this, aRecordName.get())); - unused << SendWriteComplete(aRecordName, GMPClosedErr); + Unused << SendWriteComplete(aRecordName, GMPClosedErr); return true; } if (aBytes.Length() > GMP_MAX_RECORD_SIZE) { LOGD(("GMPStorageParent[%p]::RecvWrite(record='%s') failed record too big", this, aRecordName.get())); - unused << SendWriteComplete(aRecordName, GMPQuotaExceededErr); + Unused << SendWriteComplete(aRecordName, GMPQuotaExceededErr); return true; } @@ -701,7 +701,7 @@ GMPStorageParent::RecvWrite(const nsCString& aRecordName, LOGD(("GMPStorageParent[%p]::RecvWrite(record='%s') write complete rv=%d", this, aRecordName.get(), rv)); - unused << SendWriteComplete(aRecordName, rv); + Unused << SendWriteComplete(aRecordName, rv); return true; } @@ -719,7 +719,7 @@ GMPStorageParent::RecvGetRecordNames() LOGD(("GMPStorageParent[%p]::RecvGetRecordNames() status=%d numRecords=%d", this, status, recordNames.Length())); - unused << SendRecordNames(recordNames, status); + Unused << SendRecordNames(recordNames, status); return true; } @@ -755,7 +755,7 @@ GMPStorageParent::Shutdown() return; } mShutdown = true; - unused << SendShutdown(); + Unused << SendShutdown(); mStorage = nullptr; diff --git a/dom/media/gmp/GMPTimerParent.cpp b/dom/media/gmp/GMPTimerParent.cpp index 03fe05f20bd05..8e584904810c9 100644 --- a/dom/media/gmp/GMPTimerParent.cpp +++ b/dom/media/gmp/GMPTimerParent.cpp @@ -114,7 +114,7 @@ GMPTimerParent::TimerExpired(Context* aContext) uint32_t id = aContext->mId; mTimers.RemoveEntry(aContext); if (id) { - unused << SendTimerExpired(id); + Unused << SendTimerExpired(id); } } diff --git a/dom/media/gmp/GMPVideoDecoderChild.cpp b/dom/media/gmp/GMPVideoDecoderChild.cpp index 912bcbb799604..e97cb3f1d83bd 100644 --- a/dom/media/gmp/GMPVideoDecoderChild.cpp +++ b/dom/media/gmp/GMPVideoDecoderChild.cpp @@ -208,7 +208,7 @@ GMPVideoDecoderChild::RecvDecodingComplete() mPlugin = nullptr; - unused << Send__delete__(this); + Unused << Send__delete__(this); return true; } diff --git a/dom/media/gmp/GMPVideoDecoderParent.cpp b/dom/media/gmp/GMPVideoDecoderParent.cpp index 3da7240a1daa3..6535b0d47977e 100644 --- a/dom/media/gmp/GMPVideoDecoderParent.cpp +++ b/dom/media/gmp/GMPVideoDecoderParent.cpp @@ -264,7 +264,7 @@ GMPVideoDecoderParent::Shutdown() mIsOpen = false; if (!mActorDestroyed) { - unused << SendDecodingComplete(); + Unused << SendDecodingComplete(); } return NS_OK; diff --git a/dom/media/gmp/GMPVideoEncoderChild.cpp b/dom/media/gmp/GMPVideoEncoderChild.cpp index 3ea262264af07..54e715f776293 100644 --- a/dom/media/gmp/GMPVideoEncoderChild.cpp +++ b/dom/media/gmp/GMPVideoEncoderChild.cpp @@ -178,7 +178,7 @@ GMPVideoEncoderChild::RecvEncodingComplete() } if (!mVideoEncoder) { - unused << Send__delete__(this); + Unused << Send__delete__(this); return false; } @@ -189,7 +189,7 @@ GMPVideoEncoderChild::RecvEncodingComplete() mPlugin = nullptr; - unused << Send__delete__(this); + Unused << Send__delete__(this); return true; } diff --git a/dom/media/gmp/GMPVideoEncoderParent.cpp b/dom/media/gmp/GMPVideoEncoderParent.cpp index f93fbcda87a5a..311ecef99ca31 100644 --- a/dom/media/gmp/GMPVideoEncoderParent.cpp +++ b/dom/media/gmp/GMPVideoEncoderParent.cpp @@ -233,7 +233,7 @@ GMPVideoEncoderParent::Shutdown() mIsOpen = false; if (!mActorDestroyed) { - unused << SendEncodingComplete(); + Unused << SendEncodingComplete(); } } diff --git a/dom/media/gstreamer/GStreamerReader.cpp b/dom/media/gstreamer/GStreamerReader.cpp index 41e0d97eca650..40daa0336318d 100644 --- a/dom/media/gstreamer/GStreamerReader.cpp +++ b/dom/media/gstreamer/GStreamerReader.cpp @@ -952,7 +952,7 @@ media::TimeIntervals GStreamerReader::GetBuffered() void GStreamerReader::ReadAndPushData(guint aLength) { int64_t offset1 = mResource.Tell(); - unused << offset1; + Unused << offset1; nsresult rv = NS_OK; GstBuffer* buffer = gst_buffer_new_and_alloc(aLength); @@ -974,7 +974,7 @@ void GStreamerReader::ReadAndPushData(guint aLength) } int64_t offset2 = mResource.Tell(); - unused << offset2; + Unused << offset2; #if GST_VERSION_MAJOR >= 1 gst_buffer_unmap(buffer, &info); diff --git a/dom/media/gtest/TestMediaFormatReader.cpp b/dom/media/gtest/TestMediaFormatReader.cpp index 453c6dc3fd06d..95f720ba7ddf0 100644 --- a/dom/media/gtest/TestMediaFormatReader.cpp +++ b/dom/media/gtest/TestMediaFormatReader.cpp @@ -153,7 +153,7 @@ void SetPref(const char* a, T value); template <> void SetPref(const char* aPrefKey, bool aValue) { - unused << Preferences::SetBool(aPrefKey, aValue); + Unused << Preferences::SetBool(aPrefKey, aValue); } template @@ -242,4 +242,4 @@ TEST(MediaFormatReader, RequestVideoRawData) &MediaFormatReaderBinding::OnMetadataNotRead); }; b->RunTestAndWait(testCase); -} \ No newline at end of file +} diff --git a/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp b/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp index 1c575873405ec..a13e4d500f503 100644 --- a/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp +++ b/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp @@ -92,7 +92,7 @@ class EMEDecryptor : public MediaDataDecoder { } else { MOZ_ASSERT(!mIsShutdown); nsresult rv = mDecoder->Input(aDecrypted.mSample); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); } } @@ -105,7 +105,7 @@ class EMEDecryptor : public MediaDataDecoder { iter.Remove(); } nsresult rv = mDecoder->Flush(); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); mSamplesWaitingForKey->Flush(); return rv; } @@ -119,7 +119,7 @@ class EMEDecryptor : public MediaDataDecoder { iter.Remove(); } nsresult rv = mDecoder->Drain(); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); return rv; } @@ -128,7 +128,7 @@ class EMEDecryptor : public MediaDataDecoder { MOZ_ASSERT(!mIsShutdown); mIsShutdown = true; nsresult rv = mDecoder->Shutdown(); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); mSamplesWaitingForKey->BreakCycles(); mSamplesWaitingForKey = nullptr; mDecoder = nullptr; diff --git a/dom/media/systemservices/CamerasChild.cpp b/dom/media/systemservices/CamerasChild.cpp index 8c7b39b59331d..44ad63cdad6ad 100644 --- a/dom/media/systemservices/CamerasChild.cpp +++ b/dom/media/systemservices/CamerasChild.cpp @@ -630,7 +630,7 @@ CamerasChild::Shutdown() // CamerasChild (this) will remain alive and is only deleted by the // IPC layer when SendAllDone returns. media::NewRunnableFrom([this]() -> nsresult { - unused << this->SendAllDone(); + Unused << this->SendAllDone(); return NS_OK; }); CamerasSingleton::Thread()->Dispatch(deleteRunnable, NS_DISPATCH_NORMAL); diff --git a/dom/media/systemservices/CamerasParent.cpp b/dom/media/systemservices/CamerasParent.cpp index 1f1ba7c4dd5bf..df1c1ea56b673 100644 --- a/dom/media/systemservices/CamerasParent.cpp +++ b/dom/media/systemservices/CamerasParent.cpp @@ -405,7 +405,7 @@ CamerasParent::CloseEngines() auto capNum = mCallbacks[0]->mCapturerId; LOG(("Forcing shutdown of engine %d, capturer %d", capEngine, capNum)); StopCapture(capEngine, capNum); - unused << ReleaseCaptureDevice(capEngine, capNum); + Unused << ReleaseCaptureDevice(capEngine, capNum); } for (int i = 0; i < CaptureEngine::MaxEngine; i++) { @@ -475,11 +475,11 @@ CamerasParent::RecvNumberOfCaptureDevices(const int& aCapEngine) } if (num < 0) { LOG(("RecvNumberOfCaptureDevices couldn't find devices")); - unused << self->SendReplyFailure(); + Unused << self->SendReplyFailure(); return NS_ERROR_FAILURE; } else { LOG(("RecvNumberOfCaptureDevices: %d", num)); - unused << self->SendReplyNumberOfCaptureDevices(num); + Unused << self->SendReplyNumberOfCaptureDevices(num); return NS_OK; } }); @@ -514,12 +514,12 @@ CamerasParent::RecvNumberOfCapabilities(const int& aCapEngine, } if (num < 0) { LOG(("RecvNumberOfCapabilities couldn't find capabilities")); - unused << self->SendReplyFailure(); + Unused << self->SendReplyFailure(); return NS_ERROR_FAILURE; } else { LOG(("RecvNumberOfCapabilities: %d", num)); } - unused << self->SendReplyNumberOfCapabilities(num); + Unused << self->SendReplyNumberOfCapabilities(num); return NS_OK; }); self->mPBackgroundThread->Dispatch(ipc_runnable, NS_DISPATCH_NORMAL); @@ -566,10 +566,10 @@ CamerasParent::RecvGetCaptureCapability(const int &aCapEngine, webrtcCaps.rawType, webrtcCaps.codecType)); if (error) { - unused << self->SendReplyFailure(); + Unused << self->SendReplyFailure(); return NS_ERROR_FAILURE; } - unused << self->SendReplyGetCaptureCapability(capCap); + Unused << self->SendReplyGetCaptureCapability(capCap); return NS_OK; }); self->mPBackgroundThread->Dispatch(ipc_runnable, NS_DISPATCH_NORMAL); @@ -611,12 +611,12 @@ CamerasParent::RecvGetCaptureDevice(const int& aCapEngine, } if (error) { LOG(("GetCaptureDevice failed: %d", error)); - unused << self->SendReplyFailure(); + Unused << self->SendReplyFailure(); return NS_ERROR_FAILURE; } LOG(("Returning %s name %s id", name.get(), uniqueId.get())); - unused << self->SendReplyGetCaptureDevice(name, uniqueId); + Unused << self->SendReplyGetCaptureDevice(name, uniqueId); return NS_OK; }); self->mPBackgroundThread->Dispatch(ipc_runnable, NS_DISPATCH_NORMAL); @@ -647,11 +647,11 @@ CamerasParent::RecvAllocateCaptureDevice(const int& aCapEngine, return NS_ERROR_FAILURE; } if (error) { - unused << self->SendReplyFailure(); + Unused << self->SendReplyFailure(); return NS_ERROR_FAILURE; } else { LOG(("Allocated device nr %d", numdev)); - unused << self->SendReplyAllocateCaptureDevice(numdev); + Unused << self->SendReplyAllocateCaptureDevice(numdev); return NS_OK; } }); @@ -690,10 +690,10 @@ CamerasParent::RecvReleaseCaptureDevice(const int& aCapEngine, return NS_ERROR_FAILURE; } if (error) { - unused << self->SendReplyFailure(); + Unused << self->SendReplyFailure(); return NS_ERROR_FAILURE; } else { - unused << self->SendReplySuccess(); + Unused << self->SendReplySuccess(); LOG(("Freed device nr %d", numdev)); return NS_OK; } @@ -753,10 +753,10 @@ CamerasParent::RecvStartCapture(const int& aCapEngine, return NS_ERROR_FAILURE; } if (!error) { - unused << self->SendReplySuccess(); + Unused << self->SendReplySuccess(); return NS_OK; } else { - unused << self->SendReplyFailure(); + Unused << self->SendReplyFailure(); return NS_ERROR_FAILURE; } }); diff --git a/dom/media/systemservices/MediaParent.cpp b/dom/media/systemservices/MediaParent.cpp index b619b24e76ed5..84a32d41d501d 100644 --- a/dom/media/systemservices/MediaParent.cpp +++ b/dom/media/systemservices/MediaParent.cpp @@ -447,7 +447,7 @@ Parent::RecvGetOriginKey(const uint32_t& aRequestId, if (!sIPCServingParent) { return NS_OK; } - unused << sIPCServingParent->SendGetOriginKeyResponse(aRequestId, aKey); + Unused << sIPCServingParent->SendGetOriginKeyResponse(aRequestId, aKey); } else { RefPtr mgr = MediaManager::GetInstance(); if (!mgr) { diff --git a/dom/media/systemservices/MediaSystemResourceManagerParent.cpp b/dom/media/systemservices/MediaSystemResourceManagerParent.cpp index 0029874373ceb..4523a30164d74 100644 --- a/dom/media/systemservices/MediaSystemResourceManagerParent.cpp +++ b/dom/media/systemservices/MediaSystemResourceManagerParent.cpp @@ -32,7 +32,7 @@ MediaSystemResourceManagerParent::RecvAcquire(const uint32_t& aId, MOZ_ASSERT(!request); if (request) { // Send fail response - mozilla::unused << SendResponse(aId, false /* fail */); + mozilla::Unused << SendResponse(aId, false /* fail */); return true; } diff --git a/dom/media/systemservices/MediaSystemResourceService.cpp b/dom/media/systemservices/MediaSystemResourceService.cpp index 0d695e6b1eb77..c0e3aecec78ef 100644 --- a/dom/media/systemservices/MediaSystemResourceService.cpp +++ b/dom/media/systemservices/MediaSystemResourceService.cpp @@ -95,7 +95,7 @@ MediaSystemResourceService::Acquire(media::MediaSystemResourceManagerParent* aPa resource->mResourceCount == 0) { // Resource does not exit // Send fail response - mozilla::unused << aParent->SendResponse(aId, false /* fail */); + mozilla::Unused << aParent->SendResponse(aId, false /* fail */); return; } @@ -105,12 +105,12 @@ MediaSystemResourceService::Acquire(media::MediaSystemResourceManagerParent* aPa resource->mAcquiredRequests.push_back( MediaSystemResourceRequest(aParent, aId)); // Send success response - mozilla::unused << aParent->SendResponse(aId, true /* success */); + mozilla::Unused << aParent->SendResponse(aId, true /* success */); return; } else if (!aWillWait) { // Resource is not available and do not wait. // Send fail response - mozilla::unused << aParent->SendResponse(aId, false /* fail */); + mozilla::Unused << aParent->SendResponse(aId, false /* fail */); return; } // Wait until acquire. @@ -246,7 +246,7 @@ MediaSystemResourceService::UpdateRequests(MediaSystemResourceType aResourceType MediaSystemResourceRequest& request = waitingRequests.front(); MOZ_ASSERT(request.mParent); // Send response - mozilla::unused << request.mParent->SendResponse(request.mId, true /* success */); + mozilla::Unused << request.mParent->SendResponse(request.mId, true /* success */); // Move request to mAcquiredRequests acquiredRequests.push_back(waitingRequests.front()); waitingRequests.pop_front(); diff --git a/dom/media/webaudio/AnalyserNode.cpp b/dom/media/webaudio/AnalyserNode.cpp index dc4c59a254505..938d6ab958667 100644 --- a/dom/media/webaudio/AnalyserNode.cpp +++ b/dom/media/webaudio/AnalyserNode.cpp @@ -118,7 +118,7 @@ AnalyserNode::AnalyserNode(AudioContext* aContext) // Enough chunks must be recorded to handle the case of fftSize being // increased to maximum immediately before getFloatTimeDomainData() is // called, for example. - unused << mChunks.SetLength(CHUNK_COUNT, fallible); + Unused << mChunks.SetLength(CHUNK_COUNT, fallible); AllocateBuffer(); } diff --git a/dom/media/webspeech/synth/nsSynthVoiceRegistry.cpp b/dom/media/webspeech/synth/nsSynthVoiceRegistry.cpp index 2e79b34717b7a..3cf59f72e3214 100644 --- a/dom/media/webspeech/synth/nsSynthVoiceRegistry.cpp +++ b/dom/media/webspeech/synth/nsSynthVoiceRegistry.cpp @@ -344,7 +344,7 @@ nsSynthVoiceRegistry::RemoveVoice(nsISpeechService* aService, GetAllSpeechSynthActors(ssplist); for (uint32_t i = 0; i < ssplist.Length(); ++i) - unused << ssplist[i]->SendVoiceRemoved(nsString(aUri)); + Unused << ssplist[i]->SendVoiceRemoved(nsString(aUri)); return NS_OK; } @@ -374,7 +374,7 @@ nsSynthVoiceRegistry::SetDefaultVoice(const nsAString& aUri, GetAllSpeechSynthActors(ssplist); for (uint32_t i = 0; i < ssplist.Length(); ++i) { - unused << ssplist[i]->SendSetDefaultVoice(nsString(aUri), aIsDefault); + Unused << ssplist[i]->SendSetDefaultVoice(nsString(aUri), aIsDefault); } } @@ -494,7 +494,7 @@ nsSynthVoiceRegistry::AddVoiceImpl(nsISpeechService* aService, aQueuesUtterances); for (uint32_t i = 0; i < ssplist.Length(); ++i) { - unused << ssplist[i]->SendVoiceAdded(ssvoice); + Unused << ssplist[i]->SendVoiceAdded(ssvoice); } } @@ -744,7 +744,7 @@ nsSynthVoiceRegistry::SetIsSpeaking(bool aIsSpeaking) nsTArray ssplist; GetAllSpeechSynthActors(ssplist); for (uint32_t i = 0; i < ssplist.Length(); ++i) { - unused << ssplist[i]->SendIsSpeakingChanged(aIsSpeaking); + Unused << ssplist[i]->SendIsSpeakingChanged(aIsSpeaking); } } diff --git a/dom/messagechannel/MessagePort.cpp b/dom/messagechannel/MessagePort.cpp index eb12738c93cbd..d7d5202e7522d 100644 --- a/dom/messagechannel/MessagePort.cpp +++ b/dom/messagechannel/MessagePort.cpp @@ -240,7 +240,7 @@ class ForceCloseHelper final : public nsIIPCBackgroundChildCreateCallback PBackgroundChild* actor = mozilla::ipc::BackgroundChild::GetForCurrentThread(); if (actor) { - unused << actor->SendMessagePortForceClose(aIdentifier.uuid(), + Unused << actor->SendMessagePortForceClose(aIdentifier.uuid(), aIdentifier.destinationUuid(), aIdentifier.sequenceId()); return; diff --git a/dom/messagechannel/MessagePortParent.cpp b/dom/messagechannel/MessagePortParent.cpp index e9d14cdee9a12..5b880ab6baaf5 100644 --- a/dom/messagechannel/MessagePortParent.cpp +++ b/dom/messagechannel/MessagePortParent.cpp @@ -103,7 +103,7 @@ MessagePortParent::RecvStopSendingData() } mCanSendData = false; - unused << SendStopSendingDataConfirmed(); + Unused << SendStopSendingDataConfirmed(); return true; } @@ -122,7 +122,7 @@ MessagePortParent::RecvClose() MOZ_ASSERT(!mEntangled); - unused << Send__delete__(this); + Unused << Send__delete__(this); return true; } @@ -149,7 +149,7 @@ void MessagePortParent::CloseAndDelete() { Close(); - unused << Send__delete__(this); + Unused << Send__delete__(this); } void diff --git a/dom/messagechannel/MessagePortService.cpp b/dom/messagechannel/MessagePortService.cpp index 8a0c0da256338..809b4a8a0f087 100644 --- a/dom/messagechannel/MessagePortService.cpp +++ b/dom/messagechannel/MessagePortService.cpp @@ -207,7 +207,7 @@ MessagePortService::DisentanglePort( return false; } - unused << data->mParent->Entangled(array); + Unused << data->mParent->Entangled(array); return true; } @@ -325,7 +325,7 @@ MessagePortService::PostMessages( } data->mMessages.Clear(); - unused << data->mParent->SendReceiveData(messages); + Unused << data->mParent->SendReceiveData(messages); } return true; diff --git a/dom/mobilemessage/ipc/SmsIPCService.cpp b/dom/mobilemessage/ipc/SmsIPCService.cpp index f2a78b45480a4..4bf83f31d4b74 100644 --- a/dom/mobilemessage/ipc/SmsIPCService.cpp +++ b/dom/mobilemessage/ipc/SmsIPCService.cpp @@ -73,7 +73,7 @@ SendCursorRequest(const IPCMobileMessageCursor& aRequest, // Add an extra ref for IPDL. Will be released in // SmsChild::DeallocPMobileMessageCursor(). RefPtr actorCopy(actor); - mozilla::unused << actorCopy.forget().take(); + mozilla::Unused << actorCopy.forget().take(); smsChild->SendPMobileMessageCursorConstructor(actor, aRequest); diff --git a/dom/mobilemessage/ipc/SmsParent.cpp b/dom/mobilemessage/ipc/SmsParent.cpp index baeeab658d986..d89255d66eec3 100644 --- a/dom/mobilemessage/ipc/SmsParent.cpp +++ b/dom/mobilemessage/ipc/SmsParent.cpp @@ -225,7 +225,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - unused << SendNotifyReceivedMessage(msgData); + Unused << SendNotifyReceivedMessage(msgData); return NS_OK; } @@ -236,7 +236,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - unused << SendNotifyRetrievingMessage(msgData); + Unused << SendNotifyRetrievingMessage(msgData); return NS_OK; } @@ -247,7 +247,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - unused << SendNotifySendingMessage(msgData); + Unused << SendNotifySendingMessage(msgData); return NS_OK; } @@ -258,7 +258,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - unused << SendNotifySentMessage(msgData); + Unused << SendNotifySentMessage(msgData); return NS_OK; } @@ -269,7 +269,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - unused << SendNotifyFailedMessage(msgData); + Unused << SendNotifyFailedMessage(msgData); return NS_OK; } @@ -280,7 +280,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - unused << SendNotifyDeliverySuccessMessage(msgData); + Unused << SendNotifyDeliverySuccessMessage(msgData); return NS_OK; } @@ -291,7 +291,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - unused << SendNotifyDeliveryErrorMessage(msgData); + Unused << SendNotifyDeliveryErrorMessage(msgData); return NS_OK; } @@ -309,7 +309,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, MobileMessageData msgData = static_cast(smsMsg.get())->GetData(); - unused << SendNotifyReceivedSilentMessage(msgData); + Unused << SendNotifyReceivedSilentMessage(msgData); return NS_OK; } @@ -320,7 +320,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - unused << SendNotifyReadSuccessMessage(msgData); + Unused << SendNotifyReadSuccessMessage(msgData); return NS_OK; } @@ -331,7 +331,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - unused << SendNotifyReadErrorMessage(msgData); + Unused << SendNotifyReadErrorMessage(msgData); return NS_OK; } @@ -342,7 +342,7 @@ SmsParent::Observe(nsISupports* aSubject, const char* aTopic, return NS_OK; } - unused << SendNotifyDeletedMessageInfo( + Unused << SendNotifyDeletedMessageInfo( static_cast(deletedInfo.get())->GetData()); return NS_OK; } diff --git a/dom/network/TCPServerSocketParent.cpp b/dom/network/TCPServerSocketParent.cpp index 7c78bed15c821..b2b873a21675f 100644 --- a/dom/network/TCPServerSocketParent.cpp +++ b/dom/network/TCPServerSocketParent.cpp @@ -109,7 +109,7 @@ TCPServerSocketParent::SendCallbackAccept(TCPSocketParent *socket) if (mNeckoParent) { if (mNeckoParent->SendPTCPSocketConstructor(socket, host, port)) { - mozilla::unused << PTCPServerSocketParent::SendCallbackAccept(socket); + mozilla::Unused << PTCPServerSocketParent::SendCallbackAccept(socket); } else { NS_ERROR("Sending data from PTCPSocketParent was failed."); @@ -142,7 +142,7 @@ TCPServerSocketParent::ActorDestroy(ActorDestroyReason why) bool TCPServerSocketParent::RecvRequestDelete() { - mozilla::unused << Send__delete__(this); + mozilla::Unused << Send__delete__(this); return true; } diff --git a/dom/network/TCPSocket.cpp b/dom/network/TCPSocket.cpp index ac82a4a00bae1..40c2d9ab6a2d3 100644 --- a/dom/network/TCPSocket.cpp +++ b/dom/network/TCPSocket.cpp @@ -400,7 +400,7 @@ TCPSocket::NotifyCopyComplete(nsresult aStatus) mAsyncCopierActive = false; mMultiplexStream->RemoveStream(0); if (mSocketBridgeParent) { - mozilla::unused << mSocketBridgeParent->SendUpdateBufferedAmount(BufferedAmount(), + mozilla::Unused << mSocketBridgeParent->SendUpdateBufferedAmount(BufferedAmount(), mTrackingNumber); } diff --git a/dom/network/TCPSocketChild.cpp b/dom/network/TCPSocketChild.cpp index 3c31467fb2e47..e93b448db26c9 100644 --- a/dom/network/TCPSocketChild.cpp +++ b/dom/network/TCPSocketChild.cpp @@ -231,7 +231,7 @@ TCPSocketChild::GetPort(uint16_t* aPort) bool TCPSocketChild::RecvRequestDelete() { - mozilla::unused << Send__delete__(this); + mozilla::Unused << Send__delete__(this); return true; } diff --git a/dom/network/TCPSocketParent.cpp b/dom/network/TCPSocketParent.cpp index 74cac2785fa96..08cd0dfef518d 100644 --- a/dom/network/TCPSocketParent.cpp +++ b/dom/network/TCPSocketParent.cpp @@ -37,7 +37,7 @@ namespace dom { static void FireInteralError(mozilla::net::PTCPSocketParent* aActor, uint32_t aLineNo) { - mozilla::unused << + mozilla::Unused << aActor->SendCallback(NS_LITERAL_STRING("onerror"), TCPError(NS_LITERAL_STRING("InvalidStateError"), NS_LITERAL_STRING("Internal error")), static_cast(TCPReadyState::Connecting)); @@ -135,7 +135,7 @@ NS_IMETHODIMP_(MozExternalRefCountType) TCPSocketParent::Release(void) { nsrefcnt refcnt = TCPSocketParentBase::Release(); if (refcnt == 1 && mIPCOpen) { - mozilla::unused << PTCPSocketParent::SendRequestDelete(); + mozilla::Unused << PTCPSocketParent::SendRequestDelete(); return 1; } return refcnt; @@ -335,7 +335,7 @@ TCPSocketParent::FireStringDataEvent(const nsACString& aData, TCPReadyState aRea void TCPSocketParent::SendEvent(const nsAString& aType, CallbackData aData, TCPReadyState aReadyState) { - mozilla::unused << PTCPSocketParent::SendCallback(nsString(aType), aData, + mozilla::Unused << PTCPSocketParent::SendCallback(nsString(aType), aData, static_cast(aReadyState)); } @@ -379,7 +379,7 @@ TCPSocketParent::ActorDestroy(ActorDestroyReason why) bool TCPSocketParent::RecvRequestDelete() { - mozilla::unused << Send__delete__(this); + mozilla::Unused << Send__delete__(this); return true; } diff --git a/dom/network/UDPSocketChild.cpp b/dom/network/UDPSocketChild.cpp index e53d5cd3c6a38..dd24003ffc068 100644 --- a/dom/network/UDPSocketChild.cpp +++ b/dom/network/UDPSocketChild.cpp @@ -339,7 +339,7 @@ UDPSocketChild::RecvCallbackOpened(const UDPAddressInfo& aAddressInfo) UDPSOCKET_LOG(("%s: %s:%u", __FUNCTION__, mLocalAddress.get(), mLocalPort)); nsresult rv = mSocket->CallListenerOpened(); - mozilla::unused << NS_WARN_IF(NS_FAILED(rv)); + mozilla::Unused << NS_WARN_IF(NS_FAILED(rv)); return true; } @@ -348,7 +348,7 @@ bool UDPSocketChild::RecvCallbackClosed() { nsresult rv = mSocket->CallListenerClosed(); - mozilla::unused << NS_WARN_IF(NS_FAILED(rv)); + mozilla::Unused << NS_WARN_IF(NS_FAILED(rv)); return true; } @@ -361,7 +361,7 @@ UDPSocketChild::RecvCallbackReceivedData(const UDPAddressInfo& aAddressInfo, aAddressInfo.addr().get(), aAddressInfo.port(), aData.Length())); nsresult rv = mSocket->CallListenerReceivedData(aAddressInfo.addr(), aAddressInfo.port(), aData.Elements(), aData.Length()); - mozilla::unused << NS_WARN_IF(NS_FAILED(rv)); + mozilla::Unused << NS_WARN_IF(NS_FAILED(rv)); return true; } @@ -373,7 +373,7 @@ UDPSocketChild::RecvCallbackError(const nsCString& aMessage, { UDPSOCKET_LOG(("%s: %s:%s:%u", __FUNCTION__, aMessage.get(), aFilename.get(), aLineNumber)); nsresult rv = mSocket->CallListenerError(aMessage, aFilename, aLineNumber); - mozilla::unused << NS_WARN_IF(NS_FAILED(rv)); + mozilla::Unused << NS_WARN_IF(NS_FAILED(rv)); return true; } diff --git a/dom/network/UDPSocketParent.cpp b/dom/network/UDPSocketParent.cpp index 9c1aac048cf1f..28b0d1709875e 100644 --- a/dom/network/UDPSocketParent.cpp +++ b/dom/network/UDPSocketParent.cpp @@ -99,7 +99,7 @@ UDPSocketParent::Init(const IPC::Principal& aPrincipal, MOZ_ASSERT_IF(mBackgroundManager, !aPrincipal); // will be used once we move all UDPSocket to PBackground, or // if we add in Principal checking for mtransport - unused << mBackgroundManager; + Unused << mBackgroundManager; mPrincipal = aPrincipal; if (net::UsingNeckoIPCSecurity() && @@ -185,7 +185,7 @@ UDPSocketParent::RecvBind(const UDPAddressInfo& aAddressInfo, } UDPSOCKET_LOG(("%s: SendCallbackOpened: %s:%u", __FUNCTION__, addr.get(), port)); - mozilla::unused << SendCallbackOpened(UDPAddressInfo(addr, port)); + mozilla::Unused << SendCallbackOpened(UDPAddressInfo(addr, port)); return true; } @@ -386,7 +386,7 @@ UDPSocketParent::RecvClose() nsresult rv = mSocket->Close(); mSocket = nullptr; - mozilla::unused << NS_WARN_IF(NS_FAILED(rv)); + mozilla::Unused << NS_WARN_IF(NS_FAILED(rv)); return true; } @@ -394,7 +394,7 @@ UDPSocketParent::RecvClose() bool UDPSocketParent::RecvRequestDelete() { - mozilla::unused << Send__delete__(this); + mozilla::Unused << Send__delete__(this); return true; } @@ -459,7 +459,7 @@ UDPSocketParent::OnPacketReceived(nsIUDPSocket* aSocket, nsIUDPMessage* aMessage infallibleArray.SwapElements(fallibleArray); // compose callback - mozilla::unused << SendCallbackReceivedData(UDPAddressInfo(ip, port), infallibleArray); + mozilla::Unused << SendCallbackReceivedData(UDPAddressInfo(ip, port), infallibleArray); return NS_OK; } @@ -469,7 +469,7 @@ UDPSocketParent::OnStopListening(nsIUDPSocket* aSocket, nsresult aStatus) { // underlying socket is dead, send state update to child process if (mIPCOpen) { - mozilla::unused << SendCallbackClosed(); + mozilla::Unused << SendCallbackClosed(); } return NS_OK; } @@ -481,7 +481,7 @@ UDPSocketParent::FireInternalError(uint32_t aLineNo) return; } - mozilla::unused << SendCallbackError(NS_LITERAL_CSTRING("Internal error"), + mozilla::Unused << SendCallbackError(NS_LITERAL_CSTRING("Internal error"), NS_LITERAL_CSTRING(__FILE__), aLineNo); } diff --git a/dom/nfc/gonk/NfcMessageHandler.cpp b/dom/nfc/gonk/NfcMessageHandler.cpp index 46f41ecab34f8..f8b7c3574fca9 100644 --- a/dom/nfc/gonk/NfcMessageHandler.cpp +++ b/dom/nfc/gonk/NfcMessageHandler.cpp @@ -55,7 +55,7 @@ NfcMessageHandler::Marshall(Parcel& aParcel, const CommandOptions& aOptions) bool NfcMessageHandler::Unmarshall(const Parcel& aParcel, EventOptions& aOptions) { - mozilla::unused << htonl(aParcel.readInt32()); // parcel size + mozilla::Unused << htonl(aParcel.readInt32()); // parcel size int32_t type = aParcel.readInt32(); bool isNtf = type >> 31; int32_t msgType = type & ~(1 << 31); diff --git a/dom/nfc/gonk/NfcService.cpp b/dom/nfc/gonk/NfcService.cpp index 22f1c59756491..1c26610c27ea6 100644 --- a/dom/nfc/gonk/NfcService.cpp +++ b/dom/nfc/gonk/NfcService.cpp @@ -108,7 +108,7 @@ NfcConsumer::Start() // If we could not cleanup properly before and an old // instance of the daemon is still running, we kill it // here. - unused << NS_WARN_IF(property_set("ctl.stop", "nfcd") < 0); + Unused << NS_WARN_IF(property_set("ctl.stop", "nfcd") < 0); mHandler = new NfcMessageHandler(); @@ -592,8 +592,8 @@ NfcService::Shutdown() } // |CleanupRunnable| will take care of these pointers - unused << mNfcConsumer.forget(); - unused << mThread.forget(); + Unused << mNfcConsumer.forget(); + Unused << mThread.forget(); return NS_OK; } diff --git a/dom/notification/Notification.cpp b/dom/notification/Notification.cpp index 55ccb7064fff7..af96e55be03f0 100644 --- a/dom/notification/Notification.cpp +++ b/dom/notification/Notification.cpp @@ -167,7 +167,7 @@ class NotificationStorageCallback final : public ScopeCheckingGetCallback result); n->SetStoredState(true); - unused << NS_WARN_IF(result.Failed()); + Unused << NS_WARN_IF(result.Failed()); if (!result.Failed()) { notifications.AppendElement(n.forget()); } @@ -219,7 +219,7 @@ class NotificationGetRunnable final : public nsRunnable rv = notificationStorage->Get(mOrigin, mTag, mCallback); //XXXnsm Is it guaranteed mCallback will be called in case of failure? - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); return rv; } }; @@ -1805,7 +1805,7 @@ class WorkerGetResultRunnable final : public NotificationWorkerRunnable result); n->SetStoredState(true); - unused << NS_WARN_IF(result.Failed()); + Unused << NS_WARN_IF(result.Failed()); if (!result.Failed()) { notifications.AppendElement(n.forget()); } diff --git a/dom/plugins/base/nsNPAPIPluginInstance.cpp b/dom/plugins/base/nsNPAPIPluginInstance.cpp index 20f78e8efe4b9..b930868334294 100644 --- a/dom/plugins/base/nsNPAPIPluginInstance.cpp +++ b/dom/plugins/base/nsNPAPIPluginInstance.cpp @@ -565,7 +565,7 @@ nsresult nsNPAPIPluginInstance::SetWindow(NPWindow* window) // That is somewhat complex to check, so we just use "unused" // to suppress any compiler warnings in build configurations // where the logging is a no-op. - mozilla::unused << error; + mozilla::Unused << error; mInPluginInitCall = oldVal; diff --git a/dom/plugins/base/nsPluginTags.cpp b/dom/plugins/base/nsPluginTags.cpp index 9deb0f4a9391e..046cc0065fadb 100644 --- a/dom/plugins/base/nsPluginTags.cpp +++ b/dom/plugins/base/nsPluginTags.cpp @@ -163,7 +163,7 @@ IsEnabledStateLockedForPlugin(nsIInternalPluginTag* aTag, return NS_ERROR_FAILURE; } - unused << prefs->PrefIsLocked(GetStatePrefNameForPlugin(aTag).get(), + Unused << prefs->PrefIsLocked(GetStatePrefNameForPlugin(aTag).get(), aIsEnabledStateLocked); return NS_OK; diff --git a/dom/plugins/ipc/BrowserStreamParent.cpp b/dom/plugins/ipc/BrowserStreamParent.cpp index 9bc243ce1b9d7..ec6561a280b2b 100644 --- a/dom/plugins/ipc/BrowserStreamParent.cpp +++ b/dom/plugins/ipc/BrowserStreamParent.cpp @@ -55,7 +55,7 @@ BrowserStreamParent::RecvAsyncNPP_NewStreamResult(const NPError& rv, if (mState == DEFERRING_DESTROY) { // We've been asked to destroy ourselves before init was complete. mState = DYING; - unused << SendNPP_DestroyStream(mDeferredDestroyReason); + Unused << SendNPP_DestroyStream(mDeferredDestroyReason); return true; } @@ -73,7 +73,7 @@ BrowserStreamParent::RecvAsyncNPP_NewStreamResult(const NPError& rv, if (error != NPERR_NO_ERROR) { surrogate->DestroyAsyncStream(mStream); - unused << PBrowserStreamParent::Send__delete__(this); + Unused << PBrowserStreamParent::Send__delete__(this); } return true; @@ -151,7 +151,7 @@ BrowserStreamParent::NPP_DestroyStream(NPReason reason) mDeferredDestroyReason = reason; } else { mState = DYING; - unused << SendNPP_DestroyStream(reason); + Unused << SendNPP_DestroyStream(reason); } } @@ -213,7 +213,7 @@ BrowserStreamParent::StreamAsFile(const char* fname) nsNPAPIPlugin::RetainStream(mStream, getter_AddRefs(mStreamPeer)); } - unused << SendNPP_StreamAsFile(nsCString(fname)); + Unused << SendNPP_StreamAsFile(nsCString(fname)); return; } diff --git a/dom/plugins/ipc/PluginInstanceParent.cpp b/dom/plugins/ipc/PluginInstanceParent.cpp index 9e1ee08faded0..577e6695ed839 100644 --- a/dom/plugins/ipc/PluginInstanceParent.cpp +++ b/dom/plugins/ipc/PluginInstanceParent.cpp @@ -827,7 +827,7 @@ PluginInstanceParent::EndUpdateBackground(gfxContext* aCtx, XSync(DefaultXDisplay(), False); #endif - unused << SendUpdateBackground(BackgroundDescriptor(), aRect); + Unused << SendUpdateBackground(BackgroundDescriptor(), aRect); return NS_OK; } @@ -880,7 +880,7 @@ PluginInstanceParent::DestroyBackground() // If this fails, there's no problem: |bd| will be destroyed along // with the old background surface. - unused << SendPPluginBackgroundDestroyerConstructor(pbd); + Unused << SendPPluginBackgroundDestroyerConstructor(pbd); } mozilla::plugins::SurfaceDescriptor @@ -1157,7 +1157,7 @@ PluginInstanceParent::NPP_URLRedirectNotify(const char* url, int32_t status, return; PStreamNotifyParent* streamNotify = static_cast(notifyData); - unused << streamNotify->SendRedirectNotify(NullableString(url), status); + Unused << streamNotify->SendRedirectNotify(NullableString(url), status); } int16_t @@ -1391,7 +1391,7 @@ PluginInstanceParent::NPP_NewStream(NPMIMEType type, NPStream* stream, err = NPERR_GENERIC_ERROR; } if (NPERR_NO_ERROR != err) { - unused << PBrowserStreamParent::Send__delete__(bs); + Unused << PBrowserStreamParent::Send__delete__(bs); } } @@ -1520,7 +1520,7 @@ PluginInstanceParent::NPP_URLNotify(const char* url, NPReason reason, PStreamNotifyParent* streamNotify = static_cast(notifyData); - unused << PStreamNotifyParent::Send__delete__(streamNotify, reason); + Unused << PStreamNotifyParent::Send__delete__(streamNotify, reason); } bool @@ -1809,7 +1809,7 @@ PluginInstanceParent::PluginWindowHookProc(HWND hWnd, switch (message) { case WM_SETFOCUS: // Let the child plugin window know it should take focus. - unused << self->CallSetPluginFocus(); + Unused << self->CallSetPluginFocus(); break; case WM_CLOSE: diff --git a/dom/plugins/ipc/PluginInstanceParent.h b/dom/plugins/ipc/PluginInstanceParent.h index 32a0ef5d860dc..9875a68cfb426 100644 --- a/dom/plugins/ipc/PluginInstanceParent.h +++ b/dom/plugins/ipc/PluginInstanceParent.h @@ -307,7 +307,7 @@ class PluginInstanceParent : public PPluginInstanceParent gfxContext** aCtx); nsresult EndUpdateBackground(gfxContext* aCtx, const nsIntRect& aRect); - void DidComposite() { unused << SendNPP_DidComposite(); } + void DidComposite() { Unused << SendNPP_DidComposite(); } virtual PluginAsyncSurrogate* GetAsyncSurrogate() override; diff --git a/dom/plugins/ipc/PluginModuleChild.cpp b/dom/plugins/ipc/PluginModuleChild.cpp index eac4fcf69bb87..dca050e79ceec 100644 --- a/dom/plugins/ipc/PluginModuleChild.cpp +++ b/dom/plugins/ipc/PluginModuleChild.cpp @@ -2563,6 +2563,6 @@ PluginModuleChild::RecvGatherProfile() profileCString = nsCString("", 0); } - unused << SendProfile(profileCString); + Unused << SendProfile(profileCString); return true; } diff --git a/dom/plugins/ipc/PluginModuleParent.cpp b/dom/plugins/ipc/PluginModuleParent.cpp index f3383a7afb37b..af0a88f9b24ad 100755 --- a/dom/plugins/ipc/PluginModuleParent.cpp +++ b/dom/plugins/ipc/PluginModuleParent.cpp @@ -868,7 +868,7 @@ PluginModuleParent::TimeoutChanged(const char* aPref, void* aModule) // The timeout value used by the child for its parent MOZ_ASSERT(module->IsChrome()); int32_t timeoutSecs = Preferences::GetInt(kParentTimeoutPref, 0); - unused << static_cast(module)->SendSetParentHangTimeout(timeoutSecs); + Unused << static_cast(module)->SendSetParentHangTimeout(timeoutSecs); } else if (!strcmp(aPref, kContentTimeoutPref)) { MOZ_ASSERT(!module->IsChrome()); int32_t timeoutSecs = Preferences::GetInt(kContentTimeoutPref, 0); @@ -1702,7 +1702,7 @@ PluginModuleParent::SetPluginFuncs(NPPluginFuncs* aFuncs) // Provide 'NPP_URLRedirectNotify', 'NPP_ClearSiteData', and // 'NPP_GetSitesWithData' functionality if it is supported by the plugin. bool urlRedirectSupported = false; - unused << CallOptionalFunctionsSupported(&urlRedirectSupported, + Unused << CallOptionalFunctionsSupported(&urlRedirectSupported, &mClearSiteDataSupported, &mGetSitesWithDataSupported); if (urlRedirectSupported) { @@ -1747,7 +1747,7 @@ PluginModuleParent::NPP_Destroy(NPP instance, NPError retval = parentInstance->Destroy(); instance->pdata = nullptr; - unused << PluginInstanceParent::Call__delete__(parentInstance); + Unused << PluginInstanceParent::Call__delete__(parentInstance); return retval; } @@ -2090,7 +2090,7 @@ PluginModuleChromeParent::CachedSettingChanged() { PluginSettings settings; GetSettings(&settings); - unused << SendSettingChanged(settings); + Unused << SendSettingChanged(settings); } /* static */ void @@ -2343,7 +2343,7 @@ PluginModuleChromeParent::RecvNP_InitializeResult(const NPError& aError) if (NS_SUCCEEDED(mozilla::widget::GetAudioSessionData(id, sessionName, iconPath))) { - unused << SendSetAudioSessionData(id, sessionName, iconPath); + Unused << SendSetAudioSessionData(id, sessionName, iconPath); } #endif @@ -2811,7 +2811,7 @@ void PluginModuleParent::ProcessRemoteNativeEventsInInterruptCall() { #if defined(OS_WIN) - unused << SendProcessNativeEventsInInterruptCall(); + Unused << SendProcessNativeEventsInInterruptCall(); return; #endif NS_NOTREACHED( @@ -3150,9 +3150,9 @@ PluginProfilerObserver::Observe(nsISupports *aSubject, params->GetInterval(&interval); const nsTArray& features = params->GetFeatures(); const nsTArray& threadFilterNames = params->GetThreadFilterNames(); - unused << mPmp->SendStartProfiler(entries, interval, features, threadFilterNames); + Unused << mPmp->SendStartProfiler(entries, interval, features, threadFilterNames); } else if (!strcmp(aTopic, "profiler-stopped")) { - unused << mPmp->SendStopProfiler(); + Unused << mPmp->SendStopProfiler(); } else if (!strcmp(aTopic, "profiler-subprocess-gather")) { RefPtr gatherer = static_cast(aSubject); mPmp->GatherAsyncProfile(gatherer); @@ -3193,7 +3193,7 @@ PluginModuleChromeParent::GatherAsyncProfile(ProfileGatherer* aGatherer) { mGatherer = aGatherer; mGatherer->WillGatherOOPProfile(); - unused << SendGatherProfile(); + Unused << SendGatherProfile(); } void diff --git a/dom/plugins/ipc/PluginScriptableObjectParent.cpp b/dom/plugins/ipc/PluginScriptableObjectParent.cpp index 1a33288ab16fa..5119df3b74639 100644 --- a/dom/plugins/ipc/PluginScriptableObjectParent.cpp +++ b/dom/plugins/ipc/PluginScriptableObjectParent.cpp @@ -724,7 +724,7 @@ PluginScriptableObjectParent::Unprotect() if (mType == LocalObject) { if (--mProtectCount == 0) { - unused << PluginScriptableObjectParent::Send__delete__(this); + Unused << PluginScriptableObjectParent::Send__delete__(this); } } } @@ -744,7 +744,7 @@ PluginScriptableObjectParent::DropNPObject() instance->UnregisterNPObject(mObject); mObject = nullptr; - unused << SendUnprotect(); + Unused << SendUnprotect(); } void diff --git a/dom/plugins/ipc/PluginWidgetChild.cpp b/dom/plugins/ipc/PluginWidgetChild.cpp index be19eb450c8a4..6c0c343306793 100644 --- a/dom/plugins/ipc/PluginWidgetChild.cpp +++ b/dom/plugins/ipc/PluginWidgetChild.cpp @@ -41,7 +41,7 @@ PluginWidgetChild::ProxyShutdown() mWidget = nullptr; auto tab = static_cast(Manager()); if (!tab->IsDestroyed()) { - unused << Send__delete__(this); + Unused << Send__delete__(this); } } } diff --git a/dom/presentation/provider/MulticastDNSDeviceProvider.cpp b/dom/presentation/provider/MulticastDNSDeviceProvider.cpp index 3aff95a81af03..aefa2fbff29da 100644 --- a/dom/presentation/provider/MulticastDNSDeviceProvider.cpp +++ b/dom/presentation/provider/MulticastDNSDeviceProvider.cpp @@ -57,7 +57,7 @@ GetAndroidDeviceName(nsACString& aRetVal) nsCOMPtr infoService = do_GetService("@mozilla.org/system-info;1"); MOZ_ASSERT(infoService, "Could not find a system info service"); - unused << NS_WARN_IF(NS_FAILED(infoService->GetPropertyAsACString( + Unused << NS_WARN_IF(NS_FAILED(infoService->GetPropertyAsACString( NS_LITERAL_STRING("device"), aRetVal))); } #endif // MOZ_WIDGET_ANDROID @@ -206,11 +206,11 @@ MulticastDNSDeviceProvider::Init() // FIXME: Bug 1185806 - Provide a common device name setting. if (mServiceName.IsEmpty()) { GetAndroidDeviceName(mServiceName); - unused << Preferences::SetCString(PREF_PRESENTATION_DEVICE_NAME, mServiceName); + Unused << Preferences::SetCString(PREF_PRESENTATION_DEVICE_NAME, mServiceName); } #endif // MOZ_WIDGET_ANDROID - unused << mPresentationServer->SetId(mServiceName); + Unused << mPresentationServer->SetId(mServiceName); if (mDiscoveryEnabled && NS_WARN_IF(NS_FAILED(rv = ForceDiscovery()))) { return rv; @@ -325,7 +325,7 @@ MulticastDNSDeviceProvider::StopDiscovery(nsresult aReason) MOZ_ASSERT(NS_IsMainThread()); MOZ_ASSERT(mDiscoveryTimer); - unused << mDiscoveryTimer->Cancel(); + Unused << mDiscoveryTimer->Cancel(); if (mDiscoveryRequest) { mDiscoveryRequest->Cancel(aReason); @@ -371,7 +371,7 @@ MulticastDNSDeviceProvider::AddDevice(const nsACString& aId, nsCOMPtr listener; if (NS_SUCCEEDED(GetListener(getter_AddRefs(listener))) && listener) { - unused << listener->AddDevice(device); + Unused << listener->AddDevice(device); } mDevices.AppendElement(device); @@ -399,7 +399,7 @@ MulticastDNSDeviceProvider::UpdateDevice(const uint32_t aIndex, nsCOMPtr listener; if (NS_SUCCEEDED(GetListener(getter_AddRefs(listener))) && listener) { - unused << listener->UpdateDevice(device); + Unused << listener->UpdateDevice(device); } return NS_OK; @@ -422,7 +422,7 @@ MulticastDNSDeviceProvider::RemoveDevice(const uint32_t aIndex) nsCOMPtr listener; if (NS_SUCCEEDED(GetListener(getter_AddRefs(listener))) && listener) { - unused << listener->RemoveDevice(device); + Unused << listener->RemoveDevice(device); } return NS_OK; @@ -568,7 +568,7 @@ MulticastDNSDeviceProvider::ForceDiscovery() // if it's already discovering, extend existing discovery timeout. if (mIsDiscovering) { - unused << mDiscoveryTimer->Cancel(); + Unused << mDiscoveryTimer->Cancel(); NS_WARN_IF(NS_FAILED(mDiscoveryTimer->Init(this, mDiscveryTimeoutMs, @@ -880,7 +880,7 @@ MulticastDNSDeviceProvider::OnSessionRequest(nsITCPDeviceInfo* aDeviceInfo, MOZ_ASSERT(NS_IsMainThread()); nsAutoCString address; - unused << aDeviceInfo->GetAddress(address); + Unused << aDeviceInfo->GetAddress(address); LOG_I("OnSessionRequest: %s", address.get()); @@ -893,9 +893,9 @@ MulticastDNSDeviceProvider::OnSessionRequest(nsITCPDeviceInfo* aDeviceInfo, // this device will not be listed in available device list and cannot // be used for requesting session. nsAutoCString id; - unused << aDeviceInfo->GetId(id); + Unused << aDeviceInfo->GetId(id); uint16_t port; - unused << aDeviceInfo->GetPort(&port); + Unused << aDeviceInfo->GetPort(&port); device = new Device(id, /* aName = */ id, @@ -908,7 +908,7 @@ MulticastDNSDeviceProvider::OnSessionRequest(nsITCPDeviceInfo* aDeviceInfo, nsCOMPtr listener; if (NS_SUCCEEDED(GetListener(getter_AddRefs(listener))) && listener) { - unused << listener->OnSessionRequest(device, aUrl, aPresentationId, + Unused << listener->OnSessionRequest(device, aUrl, aPresentationId, aControlChannel); } diff --git a/dom/speakermanager/SpeakerManagerService.cpp b/dom/speakermanager/SpeakerManagerService.cpp index 416f03a32a194..4d720a4bddff5 100644 --- a/dom/speakermanager/SpeakerManagerService.cpp +++ b/dom/speakermanager/SpeakerManagerService.cpp @@ -133,7 +133,7 @@ SpeakerManagerService::Notify() nsTArray children; ContentParent::GetAll(children); for (uint32_t i = 0; i < children.Length(); i++) { - unused << children[i]->SendSpeakerManagerNotify(); + Unused << children[i]->SendSpeakerManagerNotify(); } for (uint32_t i = 0; i < mRegisteredSpeakerManagers.Length(); i++) { diff --git a/dom/storage/DOMStorageCache.cpp b/dom/storage/DOMStorageCache.cpp index 94c467b5f760d..376fe17d13c49 100644 --- a/dom/storage/DOMStorageCache.cpp +++ b/dom/storage/DOMStorageCache.cpp @@ -533,7 +533,7 @@ DOMStorageCache::RemoveItem(const DOMStorage* aStorage, const nsAString& aKey, // Recalculate the cached data size const int64_t delta = -(static_cast(aOld.Length()) + static_cast(aKey.Length())); - unused << ProcessUsageDelta(aStorage, delta); + Unused << ProcessUsageDelta(aStorage, delta); data.mKeys.Remove(aKey); if (Persist(aStorage)) { @@ -572,7 +572,7 @@ DOMStorageCache::Clear(const DOMStorage* aStorage) bool hadData = !!data.mKeys.Count(); if (hadData) { - unused << ProcessUsageDelta(aStorage, -data.mOriginQuotaUsage); + Unused << ProcessUsageDelta(aStorage, -data.mOriginQuotaUsage); data.mKeys.Clear(); } diff --git a/dom/storage/DOMStorageIPC.cpp b/dom/storage/DOMStorageIPC.cpp index 7f716f42fb269..665a49c019c90 100644 --- a/dom/storage/DOMStorageIPC.cpp +++ b/dom/storage/DOMStorageIPC.cpp @@ -309,7 +309,7 @@ class SendInitialChildDataRunnable : public nsRunnable if (db) { InfallibleTArray scopes; db->GetScopesHavingData(&scopes); - mozilla::unused << mParent->SendScopesHavingData(scopes); + mozilla::Unused << mParent->SendScopesHavingData(scopes); } // We need to check if the device is in a low disk space situation, so @@ -323,7 +323,7 @@ class SendInitialChildDataRunnable : public nsRunnable bool lowDiskSpace = false; diskSpaceWatcher->GetIsDiskFull(&lowDiskSpace); if (lowDiskSpace) { - mozilla::unused << mParent->SendObserve( + mozilla::Unused << mParent->SendObserve( nsDependentCString("low-disk-space"), EmptyCString()); } @@ -514,7 +514,7 @@ DOMStorageDBParent::RecvAsyncAddItem(const nsCString& aScope, nsresult rv = db->AsyncAddItem(NewCache(aScope), aKey, aValue); if (NS_FAILED(rv) && mIPCOpen) { - mozilla::unused << SendError(rv); + mozilla::Unused << SendError(rv); } return true; @@ -532,7 +532,7 @@ DOMStorageDBParent::RecvAsyncUpdateItem(const nsCString& aScope, nsresult rv = db->AsyncUpdateItem(NewCache(aScope), aKey, aValue); if (NS_FAILED(rv) && mIPCOpen) { - mozilla::unused << SendError(rv); + mozilla::Unused << SendError(rv); } return true; @@ -549,7 +549,7 @@ DOMStorageDBParent::RecvAsyncRemoveItem(const nsCString& aScope, nsresult rv = db->AsyncRemoveItem(NewCache(aScope), aKey); if (NS_FAILED(rv) && mIPCOpen) { - mozilla::unused << SendError(rv); + mozilla::Unused << SendError(rv); } return true; @@ -565,7 +565,7 @@ DOMStorageDBParent::RecvAsyncClear(const nsCString& aScope) nsresult rv = db->AsyncClear(NewCache(aScope)); if (NS_FAILED(rv) && mIPCOpen) { - mozilla::unused << SendError(rv); + mozilla::Unused << SendError(rv); } return true; @@ -594,7 +594,7 @@ DOMStorageDBParent::Observe(const char* aTopic, if (!(static_cast(Manager())->IsNuwaProcess() && ContentParent::IsNuwaReady())) { #endif - mozilla::unused << SendObserve(nsDependentCString(aTopic), + mozilla::Unused << SendObserve(nsDependentCString(aTopic), nsCString(aScopePrefix)); #ifdef MOZ_NUWA_PROCESS } @@ -654,10 +654,10 @@ class LoadRunnable : public nsRunnable switch (mType) { case loadItem: - mozilla::unused << mParent->SendLoadItem(mScope, mKey, mValue); + mozilla::Unused << mParent->SendLoadItem(mScope, mKey, mValue); break; case loadDone: - mozilla::unused << mParent->SendLoadDone(mScope, mRv); + mozilla::Unused << mParent->SendLoadDone(mScope, mRv); break; } @@ -726,7 +726,7 @@ class UsageRunnable : public nsRunnable return NS_OK; } - mozilla::unused << mParent->SendLoadUsage(mScope, mUsage); + mozilla::Unused << mParent->SendLoadUsage(mScope, mUsage); return NS_OK; } diff --git a/dom/svg/nsSVGElement.cpp b/dom/svg/nsSVGElement.cpp index 9db080a4cbdb4..a399d26d4f815 100644 --- a/dom/svg/nsSVGElement.cpp +++ b/dom/svg/nsSVGElement.cpp @@ -1356,7 +1356,7 @@ nsSVGElement::UpdateAnimatedContentStyleRule() SMIL_MAPPED_ATTR_STYLERULE_ATOM, animContentStyleRule.get(), ReleaseStyleRule); - unused << animContentStyleRule.forget(); + Unused << animContentStyleRule.forget(); MOZ_ASSERT(rv == NS_OK, "SetProperty failed (or overwrote something)"); } diff --git a/dom/workers/ServiceWorkerManager.cpp b/dom/workers/ServiceWorkerManager.cpp index 24218327f5454..b13b18a6c5187 100644 --- a/dom/workers/ServiceWorkerManager.cpp +++ b/dom/workers/ServiceWorkerManager.cpp @@ -1215,7 +1215,7 @@ class ServiceWorkerRegisterJob final : public ServiceWorkerJob, swm->MaybeRemoveRegistration(mRegistration); // Ensures that the job can't do anything useful from this point on. mRegistration = nullptr; - unused << NS_WARN_IF(NS_FAILED(aRv)); + Unused << NS_WARN_IF(NS_FAILED(aRv)); Done(aRv); } @@ -2222,7 +2222,7 @@ class ServiceWorkerUnregisterJob final : public ServiceWorkerJob UnregisterAndDone() { nsresult rv = Unregister(); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); Done(rv); } }; @@ -3990,7 +3990,7 @@ ServiceWorkerManager::Observe(nsISupports* aSubject, RefPtr runnable = new TeardownRunnable(mActor); nsresult rv = NS_DispatchToMainThread(runnable); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); mActor = nullptr; } return NS_OK; diff --git a/dom/workers/ServiceWorkerManagerChild.cpp b/dom/workers/ServiceWorkerManagerChild.cpp index d701fbf6054ca..2abc5e94bf8e9 100644 --- a/dom/workers/ServiceWorkerManagerChild.cpp +++ b/dom/workers/ServiceWorkerManagerChild.cpp @@ -63,7 +63,7 @@ ServiceWorkerManagerChild::RecvNotifyUnregister(const PrincipalInfo& aPrincipalI } nsresult rv = swm->Unregister(principal, nullptr, aScope); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); return true; } diff --git a/dom/workers/ServiceWorkerManagerParent.cpp b/dom/workers/ServiceWorkerManagerParent.cpp index 5e734e4268b71..c60516518256e 100644 --- a/dom/workers/ServiceWorkerManagerParent.cpp +++ b/dom/workers/ServiceWorkerManagerParent.cpp @@ -297,7 +297,7 @@ ServiceWorkerManagerParent::RecvShutdown() mService->UnregisterActor(this); mService = nullptr; - unused << Send__delete__(this); + Unused << Send__delete__(this); return true; } diff --git a/dom/workers/ServiceWorkerManagerService.cpp b/dom/workers/ServiceWorkerManagerService.cpp index 1898dbb8fed61..421bafceb00f3 100644 --- a/dom/workers/ServiceWorkerManagerService.cpp +++ b/dom/workers/ServiceWorkerManagerService.cpp @@ -95,7 +95,7 @@ ServiceWorkerManagerService::PropagateRegistration( MOZ_ASSERT(parent); if (parent->ID() != aParentID) { - unused << parent->SendNotifyRegister(aData); + Unused << parent->SendNotifyRegister(aData); #ifdef DEBUG } else { parentFound = true; @@ -122,7 +122,7 @@ ServiceWorkerManagerService::PropagateSoftUpdate( MOZ_ASSERT(parent); nsString scope(aScope); - unused << parent->SendNotifySoftUpdate(aOriginAttributes, + Unused << parent->SendNotifySoftUpdate(aOriginAttributes, scope); #ifdef DEBUG if (parent->ID() == aParentID) { @@ -160,7 +160,7 @@ ServiceWorkerManagerService::PropagateUnregister( if (parent->ID() != aParentID) { nsString scope(aScope); - unused << parent->SendNotifyUnregister(aPrincipalInfo, scope); + Unused << parent->SendNotifyUnregister(aPrincipalInfo, scope); #ifdef DEBUG } else { parentFound = true; @@ -186,7 +186,7 @@ ServiceWorkerManagerService::PropagateRemove(uint64_t aParentID, if (parent->ID() != aParentID) { nsCString host(aHost); - unused << parent->SendNotifyRemove(host); + Unused << parent->SendNotifyRemove(host); #ifdef DEBUG } else { parentFound = true; @@ -216,7 +216,7 @@ ServiceWorkerManagerService::PropagateRemoveAll(uint64_t aParentID) MOZ_ASSERT(parent); if (parent->ID() != aParentID) { - unused << parent->SendNotifyRemoveAll(); + Unused << parent->SendNotifyRemoveAll(); #ifdef DEBUG } else { parentFound = true; diff --git a/dom/workers/ServiceWorkerPeriodicUpdater.cpp b/dom/workers/ServiceWorkerPeriodicUpdater.cpp index 30c1fa292f533..941cc5a54a16f 100644 --- a/dom/workers/ServiceWorkerPeriodicUpdater.cpp +++ b/dom/workers/ServiceWorkerPeriodicUpdater.cpp @@ -72,7 +72,7 @@ ServiceWorkerPeriodicUpdater::Observe(nsISupports* aSubject, nsTArray children; ContentParent::GetAll(children); for (uint32_t i = 0; i < children.Length(); i++) { - unused << children[i]->SendUpdateServiceWorkerRegistrations(); + Unused << children[i]->SendUpdateServiceWorkerRegistrations(); } } diff --git a/dom/workers/ServiceWorkerScriptCache.cpp b/dom/workers/ServiceWorkerScriptCache.cpp index 6ae1b675d3a9f..14c6158efc6b2 100644 --- a/dom/workers/ServiceWorkerScriptCache.cpp +++ b/dom/workers/ServiceWorkerScriptCache.cpp @@ -737,7 +737,7 @@ CompareNetwork::OnStreamComplete(nsIStreamLoader* aLoader, nsISupports* aContext nsAutoCString maxScope; // Note: we explicitly don't check for the return value here, because the // absence of the header is not an error condition. - unused << httpChannel->GetResponseHeader(NS_LITERAL_CSTRING("Service-Worker-Allowed"), + Unused << httpChannel->GetResponseHeader(NS_LITERAL_CSTRING("Service-Worker-Allowed"), maxScope); mManager->SetMaxScope(maxScope); diff --git a/dom/xbl/nsBindingManager.cpp b/dom/xbl/nsBindingManager.cpp index 2d7a8f1e9c5c3..19807b4ab23d1 100644 --- a/dom/xbl/nsBindingManager.cpp +++ b/dom/xbl/nsBindingManager.cpp @@ -407,7 +407,7 @@ nsBindingManager::DoProcessAttachedQueue() NS_ADDREF_THIS(); // We drop our reference to the timer here, since the timer callback is // responsible for releasing the object. - unused << timer.forget().take(); + Unused << timer.forget().take(); } } diff --git a/embedding/components/printingui/ipc/PrintProgressDialogChild.cpp b/embedding/components/printingui/ipc/PrintProgressDialogChild.cpp index fd7ae15ad3919..874a5b8ea996f 100644 --- a/embedding/components/printingui/ipc/PrintProgressDialogChild.cpp +++ b/embedding/components/printingui/ipc/PrintProgressDialogChild.cpp @@ -9,7 +9,7 @@ class nsIWebProgress; class nsIRequest; -using mozilla::unused; +using mozilla::Unused; namespace mozilla { namespace embedding { @@ -31,7 +31,7 @@ PrintProgressDialogChild::~PrintProgressDialogChild() // progress, it'll drop references to us and destroy us. We need to signal // the parent to decrement its refcount, as well as prevent it from attempting // to contact us further. - unused << Send__delete__(this); + Unused << Send__delete__(this); MOZ_COUNT_DTOR(PrintProgressDialogChild); } @@ -53,7 +53,7 @@ PrintProgressDialogChild::OnStateChange(nsIWebProgress* aProgress, uint32_t aStateFlags, nsresult aStatus) { - unused << SendStateChange(aStateFlags, aStatus); + Unused << SendStateChange(aStateFlags, aStatus); return NS_OK; } @@ -65,7 +65,7 @@ PrintProgressDialogChild::OnProgressChange(nsIWebProgress * aProgress, int32_t aCurTotalProgress, int32_t aMaxTotalProgress) { - unused << SendProgressChange(aCurSelfProgress, aMaxSelfProgress, + Unused << SendProgressChange(aCurSelfProgress, aMaxSelfProgress, aCurTotalProgress, aMaxTotalProgress); return NS_OK; } @@ -109,7 +109,7 @@ NS_IMETHODIMP PrintProgressDialogChild::GetDocTitle(char16_t* *aDocTitle) NS_IMETHODIMP PrintProgressDialogChild::SetDocTitle(const char16_t* aDocTitle) { mDocTitle = aDocTitle; - unused << SendDocTitleChange(nsString(aDocTitle)); + Unused << SendDocTitleChange(nsString(aDocTitle)); return NS_OK; } @@ -124,7 +124,7 @@ NS_IMETHODIMP PrintProgressDialogChild::GetDocURL(char16_t **aDocURL) NS_IMETHODIMP PrintProgressDialogChild::SetDocURL(const char16_t* aDocURL) { mDocURL = aDocURL; - unused << SendDocURLChange(nsString(aDocURL)); + Unused << SendDocURLChange(nsString(aDocURL)); return NS_OK; } diff --git a/embedding/components/printingui/ipc/PrintProgressDialogParent.cpp b/embedding/components/printingui/ipc/PrintProgressDialogParent.cpp index 47f1d67301a27..3572cd1bcf5dd 100644 --- a/embedding/components/printingui/ipc/PrintProgressDialogParent.cpp +++ b/embedding/components/printingui/ipc/PrintProgressDialogParent.cpp @@ -7,7 +7,7 @@ #include "nsIWebProgressListener.h" #include "PrintProgressDialogParent.h" -using mozilla::unused; +using mozilla::Unused; namespace mozilla { namespace embedding { @@ -99,7 +99,7 @@ PrintProgressDialogParent::Observe(nsISupports *aSubject, const char *aTopic, const char16_t *aData) { if (mActive) { - unused << SendDialogOpened(); + Unused << SendDialogOpened(); } else { NS_WARNING("The print progress dialog finished opening, but communications " "with the child have been closed."); diff --git a/embedding/components/printingui/ipc/PrintSettingsDialogChild.cpp b/embedding/components/printingui/ipc/PrintSettingsDialogChild.cpp index 0bd10cefe5a92..ee9c5de59c6c8 100644 --- a/embedding/components/printingui/ipc/PrintSettingsDialogChild.cpp +++ b/embedding/components/printingui/ipc/PrintSettingsDialogChild.cpp @@ -4,7 +4,7 @@ #include "PrintSettingsDialogChild.h" -using mozilla::unused; +using mozilla::Unused; namespace mozilla { namespace embedding { diff --git a/embedding/components/printingui/ipc/PrintingParent.cpp b/embedding/components/printingui/ipc/PrintingParent.cpp index fa3c53620ddc1..85ed1bd44ef1a 100644 --- a/embedding/components/printingui/ipc/PrintingParent.cpp +++ b/embedding/components/printingui/ipc/PrintingParent.cpp @@ -118,9 +118,9 @@ PrintingParent::RecvShowPrintDialog(PPrintSettingsDialogParent* aDialog, // with an async message which frees the child process from // its nested event loop. if (NS_FAILED(rv)) { - mozilla::unused << aDialog->Send__delete__(aDialog, rv); + mozilla::Unused << aDialog->Send__delete__(aDialog, rv); } else { - mozilla::unused << aDialog->Send__delete__(aDialog, resultData); + mozilla::Unused << aDialog->Send__delete__(aDialog, resultData); } return true; } diff --git a/embedding/components/printingui/ipc/nsPrintingProxy.cpp b/embedding/components/printingui/ipc/nsPrintingProxy.cpp index d68e88d451f13..512fab24e7ac7 100644 --- a/embedding/components/printingui/ipc/nsPrintingProxy.cpp +++ b/embedding/components/printingui/ipc/nsPrintingProxy.cpp @@ -57,7 +57,7 @@ nsPrintingProxy::GetInstance() nsresult nsPrintingProxy::Init() { - mozilla::unused << ContentChild::GetSingleton()->SendPPrintingConstructor(this); + mozilla::Unused << ContentChild::GetSingleton()->SendPPrintingConstructor(this); return NS_OK; } @@ -103,7 +103,7 @@ nsPrintingProxy::ShowPrintDialog(nsIDOMWindow *parent, RefPtr dialog = new PrintSettingsDialogChild(); SendPPrintSettingsDialogConstructor(dialog); - mozilla::unused << SendShowPrintDialog(dialog, pBrowser, inSettings); + mozilla::Unused << SendShowPrintDialog(dialog, pBrowser, inSettings); while(!dialog->returned()) { NS_ProcessNextEvent(nullptr, true); @@ -149,7 +149,7 @@ nsPrintingProxy::ShowProgress(nsIDOMWindow* parent, SendPPrintProgressDialogConstructor(dialogChild); - mozilla::unused << SendShowProgress(pBrowser, dialogChild, + mozilla::Unused << SendShowProgress(pBrowser, dialogChild, isForPrinting, notifyOnOpen, &rv); if (NS_FAILED(rv)) { return rv; @@ -191,7 +191,7 @@ nsPrintingProxy::SavePrintSettings(nsIPrintSettings* aPS, rv = po->SerializeToPrintData(aPS, nullptr, &settings); NS_ENSURE_SUCCESS(rv, rv); - unused << SendSavePrintSettings(settings, aUsePrinterNamePrefix, aFlags, + Unused << SendSavePrintSettings(settings, aUsePrinterNamePrefix, aFlags, &rv); return rv; } diff --git a/embedding/components/webbrowserpersist/WebBrowserPersistRemoteDocument.cpp b/embedding/components/webbrowserpersist/WebBrowserPersistRemoteDocument.cpp index f3a24bf0ec1ec..73e34f441b2d5 100644 --- a/embedding/components/webbrowserpersist/WebBrowserPersistRemoteDocument.cpp +++ b/embedding/components/webbrowserpersist/WebBrowserPersistRemoteDocument.cpp @@ -28,7 +28,7 @@ ::WebBrowserPersistRemoteDocument(WebBrowserPersistDocumentParent* aActor, WebBrowserPersistRemoteDocument::~WebBrowserPersistRemoteDocument() { if (mActor) { - unused << mActor->Send__delete__(mActor); + Unused << mActor->Send__delete__(mActor); // That will call mActor->ActorDestroy, which calls this->ActorDestroy // (whether or not the IPC send succeeds). } diff --git a/extensions/cookie/nsPermissionManager.cpp b/extensions/cookie/nsPermissionManager.cpp index a8170852e1290..2f1366b068212 100644 --- a/extensions/cookie/nsPermissionManager.cpp +++ b/extensions/cookie/nsPermissionManager.cpp @@ -47,7 +47,7 @@ static nsPermissionManager *gPermissionManager = nullptr; using mozilla::dom::ContentParent; using mozilla::dom::ContentChild; -using mozilla::unused; // ha! +using mozilla::Unused; // ha! static bool IsChildProcess() @@ -1557,7 +1557,7 @@ nsPermissionManager::AddInternal(nsIPrincipal* aPrincipal, aExpireType == nsIPermissionManager::EXPIRE_SESSION) continue; if (cp->NeedsPermissionsUpdate()) - unused << cp->SendAddPermission(permission); + Unused << cp->SendAddPermission(permission); } } diff --git a/gfx/gl/SharedSurface.cpp b/gfx/gl/SharedSurface.cpp index 956484e4675d0..a2e5d099335e2 100644 --- a/gfx/gl/SharedSurface.cpp +++ b/gfx/gl/SharedSurface.cpp @@ -369,7 +369,7 @@ SurfaceFactory::StartRecycling(layers::SharedSurfaceTextureClient* tc) bool didInsert = mRecycleTotalPool.insert(tc); MOZ_RELEASE_ASSERT(didInsert); - mozilla::unused << didInsert; + mozilla::Unused << didInsert; } void @@ -381,7 +381,7 @@ SurfaceFactory::StopRecycling(layers::SharedSurfaceTextureClient* tc) bool didErase = mRecycleTotalPool.erase(tc); MOZ_RELEASE_ASSERT(didErase); - mozilla::unused << didErase; + mozilla::Unused << didErase; } /*static*/ void diff --git a/gfx/layers/apz/src/AsyncPanZoomController.cpp b/gfx/layers/apz/src/AsyncPanZoomController.cpp index c846a19eaa194..ce20f82f78c6d 100644 --- a/gfx/layers/apz/src/AsyncPanZoomController.cpp +++ b/gfx/layers/apz/src/AsyncPanZoomController.cpp @@ -902,7 +902,7 @@ AsyncPanZoomController::Destroy() PCompositorParent* compositor = GetSharedFrameMetricsCompositor(); // Only send the release message if the SharedFrameMetrics has been created. if (compositor && mSharedFrameMetricsBuffer) { - unused << compositor->SendReleaseSharedCompositorFrameMetrics(mFrameMetrics.GetScrollId(), mAPZCId); + Unused << compositor->SendReleaseSharedCompositorFrameMetrics(mFrameMetrics.GetScrollId(), mAPZCId); } { // scope the lock diff --git a/gfx/layers/composite/TextureHost.cpp b/gfx/layers/composite/TextureHost.cpp index d2f625fe2b4c6..d4599776a186e 100644 --- a/gfx/layers/composite/TextureHost.cpp +++ b/gfx/layers/composite/TextureHost.cpp @@ -782,7 +782,7 @@ TextureParent::CompositorRecycle() mTextureHost->ClearRecycleCallback(); if (mTextureHost->GetFlags() & TextureFlags::RECYCLE) { - mozilla::unused << SendCompositorRecycle(); + mozilla::Unused << SendCompositorRecycle(); // Don't forget to prepare for the next reycle // if TextureClient request it. mWaitForClientRecycle = mTextureHost; diff --git a/gfx/layers/ipc/CompositorChild.cpp b/gfx/layers/ipc/CompositorChild.cpp index 3e4b2cd52560b..1ea92e3bf091a 100644 --- a/gfx/layers/ipc/CompositorChild.cpp +++ b/gfx/layers/ipc/CompositorChild.cpp @@ -29,7 +29,7 @@ using mozilla::layers::LayerTransactionChild; using mozilla::dom::TabChildBase; -using mozilla::unused; +using mozilla::Unused; namespace mozilla { namespace layers { @@ -510,7 +510,7 @@ CompositorChild::RecvRemotePaintIsReady() TabChildBase* tabChildBase = static_cast(iTabChildBase.get()); TabChild* tabChild = static_cast(tabChildBase); MOZ_ASSERT(tabChild); - unused << tabChild->SendRemotePaintIsReady(); + Unused << tabChild->SendRemotePaintIsReady(); mWeakTabChild = nullptr; return true; } @@ -521,7 +521,7 @@ CompositorChild::RequestNotifyAfterRemotePaint(TabChild* aTabChild) { MOZ_ASSERT(aTabChild, "NULL TabChild not allowed in CompositorChild::RequestNotifyAfterRemotePaint"); mWeakTabChild = do_GetWeakReference( static_cast(aTabChild) ); - unused << SendRequestNotifyAfterRemotePaint(); + Unused << SendRequestNotifyAfterRemotePaint(); } void diff --git a/gfx/layers/ipc/CompositorLRU.cpp b/gfx/layers/ipc/CompositorLRU.cpp index ac934a992e3fe..59fafc31e383e 100644 --- a/gfx/layers/ipc/CompositorLRU.cpp +++ b/gfx/layers/ipc/CompositorLRU.cpp @@ -22,7 +22,7 @@ mozilla::StaticRefPtr CompositorLRU::sSingleton; void CompositorLRU::Init() { - unused << GetSingleton(); + Unused << GetSingleton(); } CompositorLRU* @@ -55,13 +55,13 @@ CompositorLRU::Add(PCompositorParent* aCompositor, const uint64_t& aId) } if (mLRUSize == 0) { - unused << aCompositor->SendClearCachedResources(aId); + Unused << aCompositor->SendClearCachedResources(aId); return; } if (mLRU.Length() == mLRUSize) { CompositorLayerPair victim = mLRU.LastElement(); - unused << victim.first->SendClearCachedResources(victim.second); + Unused << victim.first->SendClearCachedResources(victim.second); mLRU.RemoveElement(victim); } mLRU.InsertElementAt(0, std::make_pair(aCompositor, aId)); diff --git a/gfx/layers/ipc/CompositorParent.cpp b/gfx/layers/ipc/CompositorParent.cpp index dbd36c2f3e33e..9a02642b4caf1 100644 --- a/gfx/layers/ipc/CompositorParent.cpp +++ b/gfx/layers/ipc/CompositorParent.cpp @@ -1091,7 +1091,7 @@ CompositorParent::CompositeToTarget(DrawTarget* aTarget, const gfx::IntRect* aRe // to local pages, hide every plugin associated with the window. if (!hasRemoteContent && BrowserTabsRemoteAutostart() && mCachedPluginData.Length()) { - unused << SendHideAllPlugins((uintptr_t)GetWidget()); + Unused << SendHideAllPlugins((uintptr_t)GetWidget()); mCachedPluginData.Clear(); #if defined(XP_WIN) // Wait for confirmation the hide operation is complete. @@ -1353,7 +1353,7 @@ bool CompositorParent::RecvRequestOverfill() { uint32_t overfillRatio = mCompositor->GetFillRatio(); - unused << SendOverfill(overfillRatio); + Unused << SendOverfill(overfillRatio); return true; } @@ -1835,14 +1835,14 @@ CompositorParent::DidComposite(TimeStamp& aCompositeStart, TimeStamp& aCompositeEnd) { if (mPendingTransaction) { - unused << SendDidComposite(0, mPendingTransaction, aCompositeStart, aCompositeEnd); + Unused << SendDidComposite(0, mPendingTransaction, aCompositeStart, aCompositeEnd); mPendingTransaction = 0; } if (mLayerManager) { nsTArray notifications; mLayerManager->ExtractImageCompositeNotifications(¬ifications); if (!notifications.IsEmpty()) { - unused << ImageBridgeParent::NotifyImageComposites(notifications); + Unused << ImageBridgeParent::NotifyImageComposites(notifications); } } @@ -2035,7 +2035,7 @@ CrossProcessCompositorParent::ShadowLayersUpdated( // Send the 'remote paint ready' message to the content thread if it has already asked. if(mNotifyAfterRemotePaint) { - unused << SendRemotePaintIsReady(); + Unused << SendRemotePaintIsReady(); mNotifyAfterRemotePaint = false; } @@ -2108,7 +2108,7 @@ CompositorParent::UpdatePluginWindowState(uint64_t aId) mPluginsLayerOffset = nsIntPoint(0,0); mPluginsLayerVisibleRegion.SetEmpty(); uintptr_t parentWidget = (uintptr_t)lts.mParent->GetWidget(); - unused << lts.mParent->SendHideAllPlugins(parentWidget); + Unused << lts.mParent->SendHideAllPlugins(parentWidget); lts.mUpdatedPluginDataAvailable = false; PLUGINS_LOG("[%" PRIu64 "] hide all", aId); } else { @@ -2132,7 +2132,7 @@ CompositorParent::UpdatePluginWindowState(uint64_t aId) } mPluginsLayerOffset = offset; mPluginsLayerVisibleRegion = visibleRegion; - unused << + Unused << lts.mParent->SendUpdatePluginConfigurations(offset, visibleRegion, lts.mPluginData); lts.mUpdatedPluginDataAvailable = false; @@ -2161,7 +2161,7 @@ CrossProcessCompositorParent::DidComposite(uint64_t aId, sIndirectLayerTreesLock->AssertCurrentThreadOwns(); LayerTransactionParent *layerTree = sIndirectLayerTrees[aId].mLayerTree; if (layerTree && layerTree->GetPendingTransactionId()) { - unused << SendDidComposite(aId, layerTree->GetPendingTransactionId(), aCompositeStart, aCompositeEnd); + Unused << SendDidComposite(aId, layerTree->GetPendingTransactionId(), aCompositeStart, aCompositeEnd); layerTree->SetPendingTransactionId(0); } } diff --git a/gfx/layers/ipc/ImageBridgeParent.cpp b/gfx/layers/ipc/ImageBridgeParent.cpp index a453285720b2c..d6462ea465a86 100644 --- a/gfx/layers/ipc/ImageBridgeParent.cpp +++ b/gfx/layers/ipc/ImageBridgeParent.cpp @@ -286,7 +286,7 @@ ImageBridgeParent::DeallocPImageContainerParent(PImageContainerParent* actor) void ImageBridgeParent::SendAsyncMessage(const InfallibleTArray& aMessage) { - mozilla::unused << SendParentAsyncMessages(aMessage); + mozilla::Unused << SendParentAsyncMessages(aMessage); } bool diff --git a/gfx/layers/ipc/ImageContainerParent.cpp b/gfx/layers/ipc/ImageContainerParent.cpp index 8d11d805948e7..f1bc194f4629b 100644 --- a/gfx/layers/ipc/ImageContainerParent.cpp +++ b/gfx/layers/ipc/ImageContainerParent.cpp @@ -22,7 +22,7 @@ ImageContainerParent::~ImageContainerParent() bool ImageContainerParent::RecvAsyncDelete() { - unused << PImageContainerParent::Send__delete__(this); + Unused << PImageContainerParent::Send__delete__(this); return true; } diff --git a/gfx/layers/ipc/LayerTransactionParent.cpp b/gfx/layers/ipc/LayerTransactionParent.cpp index fb3725195e763..fcea76791b668 100644 --- a/gfx/layers/ipc/LayerTransactionParent.cpp +++ b/gfx/layers/ipc/LayerTransactionParent.cpp @@ -1022,7 +1022,7 @@ LayerTransactionParent::SendFenceHandleIfPresent(PTextureParent* aTexture, void LayerTransactionParent::SendAsyncMessage(const InfallibleTArray& aMessage) { - mozilla::unused << SendParentAsyncMessages(aMessage); + mozilla::Unused << SendParentAsyncMessages(aMessage); } void @@ -1030,7 +1030,7 @@ LayerTransactionParent::ReplyRemoveTexture(const OpReplyRemoveTexture& aReply) { InfallibleTArray messages; messages.AppendElement(aReply); - mozilla::unused << SendParentAsyncMessages(messages); + mozilla::Unused << SendParentAsyncMessages(messages); } } // namespace layers diff --git a/gfx/layers/ipc/SharedBufferManagerParent.cpp b/gfx/layers/ipc/SharedBufferManagerParent.cpp index dd7bf2a5b75e8..ab1fa0ba80bc4 100644 --- a/gfx/layers/ipc/SharedBufferManagerParent.cpp +++ b/gfx/layers/ipc/SharedBufferManagerParent.cpp @@ -327,7 +327,7 @@ void SharedBufferManagerParent::DropGrallocBufferImpl(mozilla::layers::SurfaceDe NS_ASSERTION(key != -1, "Invalid buffer key"); NS_ASSERTION(mBuffers.count(key) == 1, "No such buffer"); mBuffers.erase(key); - mozilla::unused << SendDropGrallocBuffer(handle); + mozilla::Unused << SendDropGrallocBuffer(handle); #endif } diff --git a/gfx/vr/gfxVR.cpp b/gfx/vr/gfxVR.cpp index f06068fb97838..878f56350ab10 100644 --- a/gfx/vr/gfxVR.cpp +++ b/gfx/vr/gfxVR.cpp @@ -112,7 +112,7 @@ VRHMDManager::ManagerInit() // the >= 0.6.0 one failed to load; otherwise // we might initialize oculus twice bool useOculus050 = true; - unused << useOculus050; + Unused << useOculus050; #if defined(XP_WIN) mgr = new VRHMDManagerOculus(); diff --git a/hal/sandbox/SandboxHal.cpp b/hal/sandbox/SandboxHal.cpp index 65d5c5738bc69..4699cedd3bf8e 100644 --- a/hal/sandbox/SandboxHal.cpp +++ b/hal/sandbox/SandboxHal.cpp @@ -322,8 +322,8 @@ GetCurrentSwitchState(SwitchDevice aDevice) void NotifySwitchStateFromInputDevice(SwitchDevice aDevice, SwitchState aState) { - unused << aDevice; - unused << aState; + Unused << aDevice; + Unused << aState; NS_RUNTIMEABORT("Only the main process may notify switch state change."); } @@ -545,7 +545,7 @@ class HalParent : public PHalParent } void Notify(const BatteryInformation& aBatteryInfo) override { - unused << SendNotifyBatteryChange(aBatteryInfo); + Unused << SendNotifyBatteryChange(aBatteryInfo); } virtual bool @@ -568,7 +568,7 @@ class HalParent : public PHalParent } void Notify(const NetworkInformation& aNetworkInfo) override { - unused << SendNotifyNetworkChange(aNetworkInfo); + Unused << SendNotifyNetworkChange(aNetworkInfo); } virtual bool @@ -610,7 +610,7 @@ class HalParent : public PHalParent } void Notify(const ScreenConfiguration& aScreenConfiguration) override { - unused << SendNotifyScreenConfigurationChange(aScreenConfiguration); + Unused << SendNotifyScreenConfigurationChange(aScreenConfiguration); } virtual bool @@ -776,7 +776,7 @@ class HalParent : public PHalParent } void Notify(const SensorData& aSensorData) override { - unused << SendNotifySensorChange(aSensorData); + Unused << SendNotifySensorChange(aSensorData); } virtual bool @@ -816,7 +816,7 @@ class HalParent : public PHalParent void Notify(const WakeLockInformation& aWakeLockInfo) override { - unused << SendNotifyWakeLockChange(aWakeLockInfo); + Unused << SendNotifyWakeLockChange(aWakeLockInfo); } virtual bool @@ -836,7 +836,7 @@ class HalParent : public PHalParent void Notify(const SwitchEvent& aSwitchEvent) override { - unused << SendNotifySwitchChange(aSwitchEvent); + Unused << SendNotifySwitchChange(aSwitchEvent); } virtual bool @@ -849,12 +849,12 @@ class HalParent : public PHalParent void Notify(const int64_t& aClockDeltaMS) override { - unused << SendNotifySystemClockChange(aClockDeltaMS); + Unused << SendNotifySystemClockChange(aClockDeltaMS); } void Notify(const SystemTimezoneChangeInformation& aSystemTimezoneChangeInfo) override { - unused << SendNotifySystemTimezoneChange(aSystemTimezoneChangeInfo); + Unused << SendNotifySystemTimezoneChange(aSystemTimezoneChangeInfo); } virtual bool diff --git a/ipc/glue/BackgroundImpl.cpp b/ipc/glue/BackgroundImpl.cpp index 3defc75c28cb7..9434aea02427d 100644 --- a/ipc/glue/BackgroundImpl.cpp +++ b/ipc/glue/BackgroundImpl.cpp @@ -752,7 +752,7 @@ class ChildImpl::OpenChildProcessActorRunnable final : public nsRunnable { if (mTransport) { CRASH_IN_CHILD_PROCESS("Leaking transport!"); - unused << mTransport.forget(); + Unused << mTransport.forget(); } } @@ -1957,7 +1957,7 @@ ChildImpl::OpenMainProcessActorRunnable::Run() parentActor->SetOtherProcessId(base::GetCurrentProcId()); // Now that Open() has succeeded transfer the ownership of the actors to IPDL. - unused << parentActor.forget(); + Unused << parentActor.forget(); auto threadLocalInfo = static_cast(PR_GetThreadPrivate(sThreadLocalIndex)); diff --git a/ipc/glue/CrossProcessMutex_posix.cpp b/ipc/glue/CrossProcessMutex_posix.cpp index b5b8aa5433db6..3418a785cc207 100644 --- a/ipc/glue/CrossProcessMutex_posix.cpp +++ b/ipc/glue/CrossProcessMutex_posix.cpp @@ -117,7 +117,7 @@ CrossProcessMutex::~CrossProcessMutex() if (count == 0) { // Nothing can be done if the destroy fails so ignore return code. - unused << pthread_mutex_destroy(mMutex); + Unused << pthread_mutex_destroy(mMutex); } MOZ_COUNT_DTOR(CrossProcessMutex); diff --git a/ipc/glue/ProcessUtils_linux.cpp b/ipc/glue/ProcessUtils_linux.cpp index 0d9b66f3a913f..790fad143a8ff 100644 --- a/ipc/glue/ProcessUtils_linux.cpp +++ b/ipc/glue/ProcessUtils_linux.cpp @@ -170,7 +170,7 @@ static void CloseFileDescriptors(FdArray& aFds) { for (size_t i = 0; i < aFds.length(); i++) { - unused << HANDLE_EINTR(close(aFds[i])); + Unused << HANDLE_EINTR(close(aFds[i])); } } diff --git a/ipc/glue/Shmem.cpp b/ipc/glue/Shmem.cpp index 97dc099ecbcc3..1f90afe91c9a3 100644 --- a/ipc/glue/Shmem.cpp +++ b/ipc/glue/Shmem.cpp @@ -323,8 +323,8 @@ Shmem::AssertInvariants() const char checkMappingBack = *(reinterpret_cast(mData) + mSize - 1); // avoid "unused" warnings for these variables: - unused << checkMappingFront; - unused << checkMappingBack; + Unused << checkMappingFront; + Unused << checkMappingBack; } void diff --git a/ipc/hal/DaemonRunnables.h b/ipc/hal/DaemonRunnables.h index 70d651ad1a654..03d6fa01a3b0e 100644 --- a/ipc/hal/DaemonRunnables.h +++ b/ipc/hal/DaemonRunnables.h @@ -57,7 +57,7 @@ class DaemonResultRunnable0 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override @@ -113,7 +113,7 @@ class DaemonResultRunnable1 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override @@ -176,7 +176,7 @@ class DaemonResultRunnable3 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override @@ -251,7 +251,7 @@ class DaemonNotificationRunnable0 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override @@ -311,7 +311,7 @@ class DaemonNotificationRunnable1 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override @@ -378,7 +378,7 @@ class DaemonNotificationRunnable2 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override @@ -448,7 +448,7 @@ class DaemonNotificationRunnable3 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override @@ -520,7 +520,7 @@ class DaemonNotificationRunnable4 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override @@ -594,7 +594,7 @@ class DaemonNotificationRunnable5 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override @@ -670,7 +670,7 @@ class DaemonNotificationRunnable6 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override @@ -752,7 +752,7 @@ class DaemonNotificationRunnable9 final : public nsRunnable if (!runnable) { return; } - unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); + Unused << NS_WARN_IF(NS_FAILED(NS_DispatchToMainThread(runnable))); } NS_IMETHODIMP Run() override diff --git a/ipc/ipdl/test/cxx/TestBadActor.cpp b/ipc/ipdl/test/cxx/TestBadActor.cpp index fb004cfedf54a..ba5103fe321d1 100644 --- a/ipc/ipdl/test/cxx/TestBadActor.cpp +++ b/ipc/ipdl/test/cxx/TestBadActor.cpp @@ -16,7 +16,7 @@ TestBadActorParent::Main() if (!child) fail("Sending constructor"); - unused << child->Call__delete__(child); + Unused << child->Call__delete__(child); } PTestBadActorSubParent* diff --git a/ipc/ipdl/test/cxx/TestDataStructures.cpp b/ipc/ipdl/test/cxx/TestDataStructures.cpp index c7b3519b73ca1..a7286f5bd72c2 100644 --- a/ipc/ipdl/test/cxx/TestDataStructures.cpp +++ b/ipc/ipdl/test/cxx/TestDataStructures.cpp @@ -452,7 +452,7 @@ bool TestDataStructuresParent::RecvTest18(RegionArray&& ra) // if |ra| has been realloc()d and given a different allocator // chunk, this next line will nondeterministically crash or // iloop - while (const nsIntRect* sr = it.Next()) unused << sr; + while (const nsIntRect* sr = it.Next()) Unused << sr; } return true; diff --git a/js/ipc/WrapperOwner.cpp b/js/ipc/WrapperOwner.cpp index 1f1db4f234dd1..3b7646c20550b 100644 --- a/js/ipc/WrapperOwner.cpp +++ b/js/ipc/WrapperOwner.cpp @@ -892,7 +892,7 @@ WrapperOwner::drop(JSObject* obj) cpows_.remove(objId); if (active()) - unused << SendDropObject(objId); + Unused << SendDropObject(objId); decref(); } diff --git a/js/src/jsmath.cpp b/js/src/jsmath.cpp index cb3e4485a8b57..898e22bfa33ac 100644 --- a/js/src/jsmath.cpp +++ b/js/src/jsmath.cpp @@ -805,7 +805,7 @@ js::random_generateSeed(uint64_t* seedBuffer, size_t length) ssize_t size = length * sizeof(seedBuffer[0]); ssize_t nread = read(fd, (char *) seedBuffer, size); MOZ_ASSERT(nread == size, "Can't read /dev/urandom?!"); - mozilla::unused << nread; + mozilla::Unused << nread; close(fd); } #else diff --git a/js/src/vm/Stopwatch.cpp b/js/src/vm/Stopwatch.cpp index f4214fcba9e74..b3c80b7f3e765 100644 --- a/js/src/vm/Stopwatch.cpp +++ b/js/src/vm/Stopwatch.cpp @@ -237,7 +237,7 @@ AutoStopwatch::~AutoStopwatch() return; } - mozilla::unused << exit(); // Sadly, there is nothing we can do about an error at this point. + mozilla::Unused << exit(); // Sadly, there is nothing we can do about an error at this point. for (auto group = groups_.begin(); group < groups_.end(); group++) releaseGroup(*group); diff --git a/js/xpconnect/loader/mozJSSubScriptLoader.cpp b/js/xpconnect/loader/mozJSSubScriptLoader.cpp index 5c8ab3280b431..99cbb644e5597 100644 --- a/js/xpconnect/loader/mozJSSubScriptLoader.cpp +++ b/js/xpconnect/loader/mozJSSubScriptLoader.cpp @@ -831,7 +831,7 @@ ScriptPrecompiler::OnStreamComplete(nsIStreamLoader* aLoader, return NS_OK; } - unused << runnable.forget(); + Unused << runnable.forget(); notifier.Disarm(); return NS_OK; diff --git a/js/xpconnect/src/XPCWrappedNative.cpp b/js/xpconnect/src/XPCWrappedNative.cpp index 39f4be554823c..273e1465b8f06 100644 --- a/js/xpconnect/src/XPCWrappedNative.cpp +++ b/js/xpconnect/src/XPCWrappedNative.cpp @@ -996,7 +996,7 @@ XPCWrappedNative::SystemIsBeingShutDown() } // We leak the tearoff mNative // (for the same reason we leak mIdentity - see above). - unused << to->TakeNative().take(); + Unused << to->TakeNative().take(); to->SetInterface(nullptr); } diff --git a/layout/base/FrameLayerBuilder.cpp b/layout/base/FrameLayerBuilder.cpp index ed16befcb6dda..a0433c71fc825 100644 --- a/layout/base/FrameLayerBuilder.cpp +++ b/layout/base/FrameLayerBuilder.cpp @@ -2385,7 +2385,7 @@ ContainerState::PreparePaintedLayerForUse(PaintedLayer* aLayer, aData->mAnimatedGeometryRootPosition = animatedGeometryRootTopLeft; } #else - unused << didResetScrollPositionForLayerPixelAlignment; + Unused << didResetScrollPositionForLayerPixelAlignment; #endif } diff --git a/layout/base/nsRefreshDriver.cpp b/layout/base/nsRefreshDriver.cpp index f7cc95f3f15c0..a5ad469c8cc21 100644 --- a/layout/base/nsRefreshDriver.cpp +++ b/layout/base/nsRefreshDriver.cpp @@ -393,7 +393,7 @@ class VsyncRefreshDriverTimer : public RefreshDriverTimer // send the unobserveVsync message to disable vsync event. We don't need // to handle the cleanup stuff of this actor. PVsyncChild::ActorDestroy() // will be called and clean up this actor. - unused << mVsyncChild->SendUnobserve(); + Unused << mVsyncChild->SendUnobserve(); mVsyncChild->SetVsyncObserver(nullptr); mVsyncChild = nullptr; } @@ -412,7 +412,7 @@ class VsyncRefreshDriverTimer : public RefreshDriverTimer if (XRE_IsParentProcess()) { mVsyncDispatcher->SetParentRefreshTimer(mVsyncObserver); } else { - unused << mVsyncChild->SendObserve(); + Unused << mVsyncChild->SendObserve(); } } @@ -421,7 +421,7 @@ class VsyncRefreshDriverTimer : public RefreshDriverTimer if (XRE_IsParentProcess()) { mVsyncDispatcher->SetParentRefreshTimer(nullptr); } else { - unused << mVsyncChild->SendUnobserve(); + Unused << mVsyncChild->SendUnobserve(); } } diff --git a/layout/base/nsStyleSheetService.cpp b/layout/base/nsStyleSheetService.cpp index 00bea0a02c2e1..579f743a6fde7 100644 --- a/layout/base/nsStyleSheetService.cpp +++ b/layout/base/nsStyleSheetService.cpp @@ -169,7 +169,7 @@ nsStyleSheetService::LoadAndRegisterSheet(nsIURI *aSheetURI, SerializeURI(aSheetURI, uri); for (uint32_t i = 0; i < children.Length(); i++) { - unused << children[i]->SendLoadAndRegisterSheet(uri, aSheetType); + Unused << children[i]->SendLoadAndRegisterSheet(uri, aSheetType); } } } @@ -307,7 +307,7 @@ nsStyleSheetService::UnregisterSheet(nsIURI *aSheetURI, uint32_t aSheetType) SerializeURI(aSheetURI, uri); for (uint32_t i = 0; i < children.Length(); i++) { - unused << children[i]->SendUnregisterSheet(uri, aSheetType); + Unused << children[i]->SendUnregisterSheet(uri, aSheetType); } } diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index ad702494d3eb6..f0a22853c4bd5 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -843,7 +843,7 @@ nsComboboxControlFrame::Reflow(nsPresContext* aPresContext, if (NS_SUCCEEDED(aPresContext->PresShell()->PostReflowCallback(resize))) { // The reflow callback queue doesn't AddRef so we keep it alive until // it's released in its ReflowFinished / ReflowCallbackCanceled. - unused << resize.forget(); + Unused << resize.forget(); } // Get the width of the vertical scrollbar. That will be the inline diff --git a/layout/generic/nsColumnSetFrame.cpp b/layout/generic/nsColumnSetFrame.cpp index e1ef661e78a2d..ed9c4e88416fc 100644 --- a/layout/generic/nsColumnSetFrame.cpp +++ b/layout/generic/nsColumnSetFrame.cpp @@ -142,7 +142,7 @@ nsColumnSetFrame::PaintColumnRule(nsRenderingContext* aCtx, // couldn't ignore the DrawResult that PaintBorderWithStyleBorder returns. MOZ_ASSERT(border.mBorderImageSource.GetType() == eStyleImageType_Null); - unused << + Unused << nsCSSRendering::PaintBorderWithStyleBorder(presContext, *aCtx, this, aDirtyRect, lineRect, border, StyleContext(), diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 845b2c301953e..2120a73267e83 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -2927,7 +2927,7 @@ ScrollFrameHelper::BuildDisplayList(nsDisplayListBuilder* aBuilder, // dirty rect here. nsRect dirtyRect = aDirtyRect.Intersect(mScrollPort); - unused << DecideScrollableLayer(aBuilder, &dirtyRect, + Unused << DecideScrollableLayer(aBuilder, &dirtyRect, /* aAllowCreateDisplayPort = */ !mIsRoot); bool usingDisplayPort = aBuilder->IsPaintingToWindow() && diff --git a/layout/generic/nsImageFrame.cpp b/layout/generic/nsImageFrame.cpp index a0411b6a1d137..e4420048461a3 100644 --- a/layout/generic/nsImageFrame.cpp +++ b/layout/generic/nsImageFrame.cpp @@ -1343,7 +1343,7 @@ nsImageFrame::DisplayAltFeedback(nsRenderingContext& aRenderingContext, // couldn't ignore the DrawResult that PaintBorderWithStyleBorder returns. MOZ_ASSERT(recessedBorder.mBorderImageSource.GetType() == eStyleImageType_Null); - unused << + Unused << nsCSSRendering::PaintBorderWithStyleBorder(PresContext(), aRenderingContext, this, inner, inner, recessedBorder, mStyleContext, diff --git a/layout/ipc/VsyncParent.cpp b/layout/ipc/VsyncParent.cpp index 125240699615a..6f25eb4a52c6f 100644 --- a/layout/ipc/VsyncParent.cpp +++ b/layout/ipc/VsyncParent.cpp @@ -68,7 +68,7 @@ VsyncParent::DispatchVsyncEvent(TimeStamp aTimeStamp) // NotifyVsync(). We use mObservingVsync and mDestroyed flags to skip this // notification. if (mObservingVsync && !mDestroyed) { - unused << SendNotify(aTimeStamp); + Unused << SendNotify(aTimeStamp); } } diff --git a/layout/mathml/nsMathMLChar.cpp b/layout/mathml/nsMathMLChar.cpp index 02fce4725cc4a..3c44f56f0f9fe 100644 --- a/layout/mathml/nsMathMLChar.cpp +++ b/layout/mathml/nsMathMLChar.cpp @@ -2033,7 +2033,7 @@ void nsDisplayMathMLCharDebug::Paint(nsDisplayListBuilder* aBuilder, // Since this is used only for debugging, we don't need to worry about // tracking the DrawResult. - unused << + Unused << nsCSSRendering::PaintBorder(presContext, *aCtx, mFrame, mVisibleRect, rect, styleContext, flags, skipSides); diff --git a/media/libstagefright/binding/SinfParser.cpp b/media/libstagefright/binding/SinfParser.cpp index 4cf55a6acfd35..5f1036cf4d5fb 100644 --- a/media/libstagefright/binding/SinfParser.cpp +++ b/media/libstagefright/binding/SinfParser.cpp @@ -39,7 +39,7 @@ SinfParser::ParseSchm(Box& aBox) return; } - mozilla::unused << reader->ReadU32(); // flags -- ignore + mozilla::Unused << reader->ReadU32(); // flags -- ignore mSinf.mDefaultEncryptionType = reader->ReadU32(); reader->DiscardRemaining(); @@ -64,7 +64,7 @@ SinfParser::ParseTenc(Box& aBox) return; } - mozilla::unused << reader->ReadU32(); // flags -- ignore + mozilla::Unused << reader->ReadU32(); // flags -- ignore uint32_t isEncrypted = reader->ReadU24(); mSinf.mDefaultIVSize = reader->ReadU8(); diff --git a/media/webrtc/signaling/src/peerconnection/WebrtcGlobalInformation.cpp b/media/webrtc/signaling/src/peerconnection/WebrtcGlobalInformation.cpp index 3f690a3fb84b8..4b3646dc9785f 100644 --- a/media/webrtc/signaling/src/peerconnection/WebrtcGlobalInformation.cpp +++ b/media/webrtc/signaling/src/peerconnection/WebrtcGlobalInformation.cpp @@ -256,7 +256,7 @@ OnStatsReport_m(WebrtcGlobalChild* aThisChild, } } - unused << aThisChild->SendGetStatsResult(aRequestId, stats); + Unused << aThisChild->SendGetStatsResult(aRequestId, stats); return; } @@ -327,7 +327,7 @@ static void OnGetLogging_m(WebrtcGlobalChild* aThisChild, nsLogs.AppendElement(NS_LITERAL_STRING("+++++++ END ++++++++"), fallible); } - unused << aThisChild->SendGetLogResult(aRequestId, nsLogs); + Unused << aThisChild->SendGetLogResult(aRequestId, nsLogs); return; } @@ -585,7 +585,7 @@ WebrtcGlobalInformation::SetDebugLevel(const GlobalObject& aGlobal, int32_t aLev sLastSetLevel = aLevel; for (auto& cp : WebrtcContentParents::GetAll()){ - unused << cp->SendSetDebugMode(aLevel); + Unused << cp->SendSetDebugMode(aLevel); } } @@ -603,7 +603,7 @@ WebrtcGlobalInformation::SetAecDebug(const GlobalObject& aGlobal, bool aEnable) sLastAECDebug = aEnable; for (auto& cp : WebrtcContentParents::GetAll()){ - unused << cp->SendSetAecLogging(aEnable); + Unused << cp->SendSetAecLogging(aEnable); } } diff --git a/mfbt/AlreadyAddRefed.h b/mfbt/AlreadyAddRefed.h index b2c35d3403bb4..d02e8ae54f3dd 100644 --- a/mfbt/AlreadyAddRefed.h +++ b/mfbt/AlreadyAddRefed.h @@ -102,7 +102,7 @@ struct MOZ_MUST_USE MOZ_NON_AUTOABLE already_AddRefed // Specialize the unused operator<< for already_AddRefed, to allow // nsCOMPtr foo; - // unused << foo.forget(); + // Unused << foo.forget(); // Note that nsCOMPtr is the XPCOM reference counting smart pointer class. friend void operator<<(const mozilla::unused_t& aUnused, const already_AddRefed& aRhs) diff --git a/mfbt/tests/TestSplayTree.cpp b/mfbt/tests/TestSplayTree.cpp index 31b3bb3f21a30..8fad2bc565f54 100644 --- a/mfbt/tests/TestSplayTree.cpp +++ b/mfbt/tests/TestSplayTree.cpp @@ -119,7 +119,7 @@ static SplayTree testNoCopy; int main() { - mozilla::unused << testNoCopy; + mozilla::Unused << testNoCopy; SplayTree tree; diff --git a/mfbt/tests/TestTuple.cpp b/mfbt/tests/TestTuple.cpp index 2fee47b1a64e5..0d99106235a2b 100644 --- a/mfbt/tests/TestTuple.cpp +++ b/mfbt/tests/TestTuple.cpp @@ -24,7 +24,7 @@ using mozilla::Pair; using mozilla::Tie; using mozilla::Tuple; using mozilla::UniquePtr; -using mozilla::unused; +using mozilla::Unused; using std::pair; #if (_MSC_VER == 1800) @@ -55,9 +55,9 @@ TestConstruction() { // Default construction Tuple<> a; - unused << a; + Unused << a; Tuple b; - unused << b; + Unused << b; // Construction from elements int x = 1, y = 1; diff --git a/mfbt/unused.cpp b/mfbt/unused.cpp index cee781c4cb951..4acfa7a14bcba 100644 --- a/mfbt/unused.cpp +++ b/mfbt/unused.cpp @@ -8,6 +8,6 @@ namespace mozilla { -const unused_t unused = unused_t(); +const unused_t Unused = unused_t(); } // namespace mozilla diff --git a/mfbt/unused.h b/mfbt/unused.h index e9db127c3a58b..e693e32ac7ef4 100644 --- a/mfbt/unused.h +++ b/mfbt/unused.h @@ -15,7 +15,7 @@ namespace mozilla { // // Suppress GCC warnings about unused return values with -// unused << SomeFuncDeclaredWarnUnusedReturnValue(); +// Unused << SomeFuncDeclaredWarnUnusedReturnValue(); // struct unused_t { @@ -24,13 +24,13 @@ struct unused_t operator<<(const T& /*unused*/) const {} }; -extern MFBT_DATA const unused_t unused; +extern MFBT_DATA const unused_t Unused; } // namespace mozilla #endif // __cplusplus -// An alternative to mozilla::unused for use in (a) C code and (b) code where +// An alternative to mozilla::Unused for use in (a) C code and (b) code where // linking with unused.o is difficult. #define MOZ_UNUSED(expr) \ do { if (expr) { (void)0; } } while (0) diff --git a/netwerk/cache2/CacheIndex.cpp b/netwerk/cache2/CacheIndex.cpp index 1af544cb52565..6ef51cce73813 100644 --- a/netwerk/cache2/CacheIndex.cpp +++ b/netwerk/cache2/CacheIndex.cpp @@ -3023,7 +3023,7 @@ CacheIndex::FinishUpdate(bool aSucceeded) NS_WARNING(("CacheIndex::FinishUpdate() - Leaking mDirEnumerator!")); // This can happen only in case dispatching event to IO thread failed in // CacheIndex::PreShutdown(). - unused << mDirEnumerator.forget(); // Leak it since dir enumerator is not threadsafe + Unused << mDirEnumerator.forget(); // Leak it since dir enumerator is not threadsafe } else { mDirEnumerator->Close(); mDirEnumerator = nullptr; diff --git a/netwerk/dns/DNSRequestChild.cpp b/netwerk/dns/DNSRequestChild.cpp index 8437c8167020f..35509558109b0 100644 --- a/netwerk/dns/DNSRequestChild.cpp +++ b/netwerk/dns/DNSRequestChild.cpp @@ -264,7 +264,7 @@ DNSRequestChild::RecvLookupCompleted(const DNSRequestResponse& reply) mTarget->Dispatch(event, NS_DISPATCH_NORMAL); } - unused << Send__delete__(this); + Unused << Send__delete__(this); return true; } diff --git a/netwerk/dns/DNSRequestParent.cpp b/netwerk/dns/DNSRequestParent.cpp index fc47c089f8b80..0d650f0a7f190 100644 --- a/netwerk/dns/DNSRequestParent.cpp +++ b/netwerk/dns/DNSRequestParent.cpp @@ -46,7 +46,7 @@ DNSRequestParent::DoAsyncResolve(const nsACString &hostname, uint32_t flags, if (NS_FAILED(rv) && !mIPCClosed) { mIPCClosed = true; - unused << SendLookupCompleted(DNSRequestResponse(rv)); + Unused << SendLookupCompleted(DNSRequestResponse(rv)); } } @@ -116,9 +116,9 @@ DNSRequestParent::OnLookupComplete(nsICancelable *request, array.AppendElement(addr); } - unused << SendLookupCompleted(DNSRequestResponse(DNSRecord(cname, array))); + Unused << SendLookupCompleted(DNSRequestResponse(DNSRecord(cname, array))); } else { - unused << SendLookupCompleted(DNSRequestResponse(status)); + Unused << SendLookupCompleted(DNSRequestResponse(status)); } mIPCClosed = true; diff --git a/netwerk/ipc/RemoteOpenFileChild.cpp b/netwerk/ipc/RemoteOpenFileChild.cpp index 5b0e44645f785..3c5e70810dcb9 100644 --- a/netwerk/ipc/RemoteOpenFileChild.cpp +++ b/netwerk/ipc/RemoteOpenFileChild.cpp @@ -125,15 +125,15 @@ RemoteOpenFileChild::~RemoteOpenFileChild() NS_DISPATCH_NORMAL))); } } else { - using mozilla::unused; + using mozilla::Unused; NS_WARNING("RemoteOpenFileChild released after thread shutdown, leaking " "its members!"); - unused << mURI.forget(); - unused << mAppURI.forget(); - unused << mListener.forget(); - unused << mTabChild.forget(); + Unused << mURI.forget(); + Unused << mAppURI.forget(); + Unused << mListener.forget(); + Unused << mTabChild.forget(); } } diff --git a/netwerk/ipc/RemoteOpenFileParent.cpp b/netwerk/ipc/RemoteOpenFileParent.cpp index e21562e52176a..c0596d9bebf30 100644 --- a/netwerk/ipc/RemoteOpenFileParent.cpp +++ b/netwerk/ipc/RemoteOpenFileParent.cpp @@ -53,7 +53,7 @@ RemoteOpenFileParent::OpenSendCloseDelete() } // Sending a potentially invalid file descriptor is just fine. - unused << Send__delete__(this, fileDescriptor); + Unused << Send__delete__(this, fileDescriptor); // Current process's file descriptor is closed by FileDescriptor destructor. #endif // OS_TYPE diff --git a/netwerk/protocol/data/DataChannelChild.cpp b/netwerk/protocol/data/DataChannelChild.cpp index ffb31b7ebd7b8..a6f969bf93fe9 100644 --- a/netwerk/protocol/data/DataChannelChild.cpp +++ b/netwerk/protocol/data/DataChannelChild.cpp @@ -53,7 +53,7 @@ DataChannelChild::CompleteRedirectSetup(nsIStreamListener *aListener, } if (mIPCOpen) { - unused << Send__delete__(this); + Unused << Send__delete__(this); } return NS_OK; } diff --git a/netwerk/protocol/ftp/FTPChannelParent.cpp b/netwerk/protocol/ftp/FTPChannelParent.cpp index 1599b2eae0452..0cf3e7233708b 100644 --- a/netwerk/protocol/ftp/FTPChannelParent.cpp +++ b/netwerk/protocol/ftp/FTPChannelParent.cpp @@ -823,7 +823,7 @@ FTPChannelParent::NotifyDiversionFailed(nsresult aErrorCode, mChannel = nullptr; if (!mIPCClosed) { - unused << SendDeleteSelf(); + Unused << SendDeleteSelf(); } } diff --git a/netwerk/protocol/http/HttpChannelChild.cpp b/netwerk/protocol/http/HttpChannelChild.cpp index abc40a6babfd4..0624f094cafd8 100644 --- a/netwerk/protocol/http/HttpChannelChild.cpp +++ b/netwerk/protocol/http/HttpChannelChild.cpp @@ -1825,7 +1825,7 @@ HttpChannelChild::ContinueAsyncOpen() PFileDescriptorSetChild* fdSet = gNeckoChild->Manager()->SendPFileDescriptorSetConstructor(fds[0]); for (uint32_t i = 1; i < fds.Length(); ++i) { - unused << fdSet->SendAddFileDescriptor(fds[i]); + Unused << fdSet->SendAddFileDescriptor(fds[i]); } optionalFDs = fdSet; diff --git a/netwerk/protocol/http/HttpChannelParent.cpp b/netwerk/protocol/http/HttpChannelParent.cpp index 0a141e3dd8464..f743242c13c14 100644 --- a/netwerk/protocol/http/HttpChannelParent.cpp +++ b/netwerk/protocol/http/HttpChannelParent.cpp @@ -469,7 +469,7 @@ HttpChannelParent::DoAsyncOpen( const URIParams& aURI, fdSetActor->ForgetFileDescriptors(fds); MOZ_ASSERT(!fds.IsEmpty()); - unused << fdSetActor->Send__delete__(fdSetActor); + Unused << fdSetActor->Send__delete__(fdSetActor); } else if (aFds.type() == OptionalFileDescriptorSet::TArrayOfFileDescriptor) { const_cast(aFds). get_ArrayOfFileDescriptor().SwapElements(fds); @@ -1285,7 +1285,7 @@ NS_IMETHODIMP HttpChannelParent::NotifyTrackingProtectionDisabled() { if (!mIPCClosed) - unused << SendNotifyTrackingProtectionDisabled(); + Unused << SendNotifyTrackingProtectionDisabled(); return NS_OK; } @@ -1293,7 +1293,7 @@ NS_IMETHODIMP HttpChannelParent::Delete() { if (!mIPCClosed) - unused << SendDeleteSelf(); + Unused << SendDeleteSelf(); return NS_OK; } @@ -1353,7 +1353,7 @@ HttpChannelParent::CompleteRedirect(bool succeeded) if (succeeded && !mIPCClosed) { // TODO: check return value: assume child dead if failed - unused << SendRedirect3Complete(); + Unused << SendRedirect3Complete(); } mRedirectChannel = nullptr; @@ -1574,7 +1574,7 @@ HttpChannelParent::NotifyDiversionFailed(nsresult aErrorCode, mChannel = nullptr; if (!mIPCClosed) { - unused << SendDeleteSelf(); + Unused << SendDeleteSelf(); } } @@ -1640,7 +1640,7 @@ HttpChannelParent::ReportSecurityMessage(const nsAString& aMessageTag, NS_IMETHODIMP HttpChannelParent::IssueWarning(uint32_t aWarning, bool aAsError) { - unused << SendIssueDeprecationWarning(aWarning, aAsError); + Unused << SendIssueDeprecationWarning(aWarning, aAsError); return NS_OK; } diff --git a/netwerk/protocol/http/HttpChannelParentListener.cpp b/netwerk/protocol/http/HttpChannelParentListener.cpp index e63487ca10018..e924c4b921353 100644 --- a/netwerk/protocol/http/HttpChannelParentListener.cpp +++ b/netwerk/protocol/http/HttpChannelParentListener.cpp @@ -14,7 +14,7 @@ #include "nsIHttpEventSink.h" #include "nsIPackagedAppChannelListener.h" -using mozilla::unused; +using mozilla::Unused; namespace mozilla { namespace net { diff --git a/netwerk/protocol/res/SubstitutingProtocolHandler.cpp b/netwerk/protocol/res/SubstitutingProtocolHandler.cpp index c7cfeb03f47c0..fb4b82296b02e 100644 --- a/netwerk/protocol/res/SubstitutingProtocolHandler.cpp +++ b/netwerk/protocol/res/SubstitutingProtocolHandler.cpp @@ -169,7 +169,7 @@ SubstitutingProtocolHandler::SendSubstitution(const nsACString& aRoot, nsIURI* a } for (uint32_t i = 0; i < parents.Length(); i++) { - unused << parents[i]->SendRegisterChromeItem(mapping); + Unused << parents[i]->SendRegisterChromeItem(mapping); } } diff --git a/netwerk/protocol/res/nsResProtocolHandler.cpp b/netwerk/protocol/res/nsResProtocolHandler.cpp index 9dbef19b47c2d..a5d5572affb6b 100644 --- a/netwerk/protocol/res/nsResProtocolHandler.cpp +++ b/netwerk/protocol/res/nsResProtocolHandler.cpp @@ -19,7 +19,7 @@ using mozilla::dom::ContentParent; using mozilla::LogLevel; -using mozilla::unused; +using mozilla::Unused; #define kAPP NS_LITERAL_CSTRING("app") #define kGRE NS_LITERAL_CSTRING("gre") diff --git a/netwerk/protocol/rtsp/controller/RtspControllerParent.cpp b/netwerk/protocol/rtsp/controller/RtspControllerParent.cpp index aa1923b6ad18d..915d086a74260 100644 --- a/netwerk/protocol/rtsp/controller/RtspControllerParent.cpp +++ b/netwerk/protocol/rtsp/controller/RtspControllerParent.cpp @@ -23,7 +23,7 @@ PRLogModuleInfo* gRtspLog; #define SEND_DISCONNECT_IF_ERROR(rv) \ if (NS_FAILED(rv) && mIPCOpen && mTotalTracks > 0ul) { \ for (uint32_t i = 0; i < mTotalTracks; i++) { \ - unused << SendOnDisconnected(i, rv); \ + Unused << SendOnDisconnected(i, rv); \ } \ } diff --git a/netwerk/protocol/websocket/WebSocketEventListenerParent.cpp b/netwerk/protocol/websocket/WebSocketEventListenerParent.cpp index ef1d57188ee71..9a55671af476e 100644 --- a/netwerk/protocol/websocket/WebSocketEventListenerParent.cpp +++ b/netwerk/protocol/websocket/WebSocketEventListenerParent.cpp @@ -35,7 +35,7 @@ WebSocketEventListenerParent::RecvClose() { if (mService) { UnregisterListener(); - unused << Send__delete__(this); + Unused << Send__delete__(this); } return true; @@ -61,7 +61,7 @@ WebSocketEventListenerParent::WebSocketCreated(uint32_t aWebSocketSerialID, const nsAString& aURI, const nsACString& aProtocols) { - unused << SendWebSocketCreated(aWebSocketSerialID, nsString(aURI), + Unused << SendWebSocketCreated(aWebSocketSerialID, nsString(aURI), nsCString(aProtocols)); return NS_OK; } @@ -72,7 +72,7 @@ WebSocketEventListenerParent::WebSocketOpened(uint32_t aWebSocketSerialID, const nsACString& aProtocols, const nsACString& aExtensions) { - unused << SendWebSocketOpened(aWebSocketSerialID, nsString(aEffectiveURI), + Unused << SendWebSocketOpened(aWebSocketSerialID, nsString(aEffectiveURI), nsCString(aProtocols), nsCString(aExtensions)); return NS_OK; } @@ -83,7 +83,7 @@ WebSocketEventListenerParent::WebSocketClosed(uint32_t aWebSocketSerialID, uint16_t aCode, const nsAString& aReason) { - unused << SendWebSocketClosed(aWebSocketSerialID, aWasClean, aCode, + Unused << SendWebSocketClosed(aWebSocketSerialID, aWasClean, aCode, nsString(aReason)); return NS_OK; } @@ -93,7 +93,7 @@ WebSocketEventListenerParent::WebSocketMessageAvailable(uint32_t aWebSocketSeria const nsACString& aData, uint16_t aMessageType) { - unused << SendWebSocketMessageAvailable(aWebSocketSerialID, nsCString(aData), + Unused << SendWebSocketMessageAvailable(aWebSocketSerialID, nsCString(aData), aMessageType); return NS_OK; } @@ -107,7 +107,7 @@ WebSocketEventListenerParent::FrameReceived(uint32_t aWebSocketSerialID, } WebSocketFrame* frame = static_cast(aFrame); - unused << SendFrameReceived(aWebSocketSerialID, frame->Data()); + Unused << SendFrameReceived(aWebSocketSerialID, frame->Data()); return NS_OK; } @@ -120,7 +120,7 @@ WebSocketEventListenerParent::FrameSent(uint32_t aWebSocketSerialID, } WebSocketFrame* frame = static_cast(aFrame); - unused << SendFrameSent(aWebSocketSerialID, frame->Data()); + Unused << SendFrameSent(aWebSocketSerialID, frame->Data()); return NS_OK; } diff --git a/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp b/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp index 845b8f02f2ea2..8e88610d2582c 100644 --- a/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp +++ b/netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp @@ -43,7 +43,7 @@ class nsWyciwygAsyncEvent : public nsRunnable { NS_WARN_IF_FALSE(thread, "Couldn't get the main thread!"); if (thread) { nsIWyciwygChannel *chan = static_cast(mChannel); - mozilla::unused << mChannel.forget(); + mozilla::Unused << mChannel.forget(); NS_ProxyRelease(thread, chan); } } diff --git a/netwerk/sctp/datachannel/DataChannel.cpp b/netwerk/sctp/datachannel/DataChannel.cpp index cda5cb9f37130..87c79dd592c5d 100644 --- a/netwerk/sctp/datachannel/DataChannel.cpp +++ b/netwerk/sctp/datachannel/DataChannel.cpp @@ -2380,7 +2380,7 @@ class DataChannelBlobSendRunnable : public nsRunnable if (!NS_IsMainThread() && mConnection) { MOZ_ASSERT(false); // explicitly leak the connection if destroyed off mainthread - unused << mConnection.forget().take(); + Unused << mConnection.forget().take(); } } diff --git a/netwerk/test/TestOpen.cpp b/netwerk/test/TestOpen.cpp index ff1491da65029..5925efbb89e39 100644 --- a/netwerk/test/TestOpen.cpp +++ b/netwerk/test/TestOpen.cpp @@ -79,7 +79,7 @@ main(int argc, char **argv) uint32_t read; while (NS_SUCCEEDED(stream->Read(buf, sizeof(buf), &read)) && read) { - unused << fwrite(buf, 1, read, outfile); + Unused << fwrite(buf, 1, read, outfile); } printf("Done\n"); diff --git a/netwerk/test/TestProtocols.cpp b/netwerk/test/TestProtocols.cpp index fa8ff15099e9b..9de713d9c2817 100644 --- a/netwerk/test/TestProtocols.cpp +++ b/netwerk/test/TestProtocols.cpp @@ -311,7 +311,7 @@ TestAuthPrompt::PromptUsernameAndPassword(const char16_t *dialogTitle, int n; printf("Enter username: "); - unused << fgets(buf, sizeof(buf), stdin); + Unused << fgets(buf, sizeof(buf), stdin); n = strlen(buf); buf[n-1] = '\0'; // trim trailing newline *user = NS_StringCloneData(NS_ConvertUTF8toUTF16(buf)); @@ -808,7 +808,7 @@ nsresult LoadURLFromConsole() { char buffer[1024]; printf("Enter URL (\"q\" to start): "); - unused << scanf("%s", buffer); + Unused << scanf("%s", buffer); if (buffer[0]=='q') gAskUserForInput = false; else diff --git a/parser/html/nsHtml5Atom.cpp b/parser/html/nsHtml5Atom.cpp index 16c65139d8d76..4d84bcb68cdf4 100644 --- a/parser/html/nsHtml5Atom.cpp +++ b/parser/html/nsHtml5Atom.cpp @@ -25,7 +25,7 @@ nsHtml5Atom::nsHtml5Atom(const nsAString& aString) NS_ASSERTION(Equals(aString), "correct data"); // Take ownership of buffer - mozilla::unused << buf.forget(); + mozilla::Unused << buf.forget(); } nsHtml5Atom::~nsHtml5Atom() diff --git a/security/manager/ssl/DataStorage.cpp b/security/manager/ssl/DataStorage.cpp index 6072cb65dee45..ea15c31fafcc2 100644 --- a/security/manager/ssl/DataStorage.cpp +++ b/security/manager/ssl/DataStorage.cpp @@ -116,7 +116,7 @@ DataStorage::Reader::~Reader() MonitorAutoLock readyLock(mDataStorage->mReadyMonitor); mDataStorage->mReady = true; nsresult rv = mDataStorage->mReadyMonitor.NotifyAll(); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); } // This is for tests. @@ -125,7 +125,7 @@ DataStorage::Reader::~Reader() &DataStorage::NotifyObservers, "data-storage-ready"); nsresult rv = NS_DispatchToMainThread(job, NS_DISPATCH_NORMAL); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); } NS_IMETHODIMP @@ -496,7 +496,7 @@ DataStorage::Remove(const nsCString& aKey, DataStorageType aType) table.Remove(aKey); if (aType == DataStorage_Persistent && !mPendingWrite) { - unused << AsyncSetTimer(lock); + Unused << AsyncSetTimer(lock); } } @@ -623,7 +623,7 @@ DataStorage::TimerCallback(nsITimer* aTimer, void* aClosure) { RefPtr aDataStorage = (DataStorage*)aClosure; MutexAutoLock lock(aDataStorage->mMutex); - unused << aDataStorage->AsyncWriteData(lock); + Unused << aDataStorage->AsyncWriteData(lock); } // We only initialize the timer on the worker thread because it's not safe @@ -661,7 +661,7 @@ DataStorage::SetTimer() rv = mTimer->InitWithFuncCallback(TimerCallback, this, mTimerDelay, nsITimer::TYPE_ONE_SHOT); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); } void @@ -697,7 +697,7 @@ DataStorage::ShutdownTimer() MOZ_ASSERT(!NS_IsMainThread()); MutexAutoLock lock(mMutex); nsresult rv = mTimer->Cancel(); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); mTimer = nullptr; } @@ -724,10 +724,10 @@ DataStorage::Observe(nsISupports* aSubject, const char* aTopic, MutexAutoLock lock(mMutex); rv = AsyncWriteData(lock); mShuttingDown = true; - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); if (mTimer) { rv = DispatchShutdownTimer(lock); - unused << NS_WARN_IF(NS_FAILED(rv)); + Unused << NS_WARN_IF(NS_FAILED(rv)); } } // Run the thread to completion and prevent any further events diff --git a/security/manager/ssl/PSMContentListener.cpp b/security/manager/ssl/PSMContentListener.cpp index 0afb26a359f42..faa9f6542acce 100644 --- a/security/manager/ssl/PSMContentListener.cpp +++ b/security/manager/ssl/PSMContentListener.cpp @@ -243,7 +243,7 @@ PSMContentDownloaderParent::RecvOnStopRequest(const nsresult& code) } if (mIPCOpen) { - mozilla::unused << Send__delete__(this); + mozilla::Unused << Send__delete__(this); } return true; } @@ -254,7 +254,7 @@ PSMContentDownloaderParent::OnStopRequest(nsIRequest* request, nsISupports* cont nsresult rv = PSMContentStreamListener::OnStopRequest(request, context, code); if (mIPCOpen) { - mozilla::unused << Send__delete__(this); + mozilla::Unused << Send__delete__(this); } return rv; } @@ -265,7 +265,7 @@ PSMContentDownloaderParent::RecvDivertToParentUsing(mozilla::net::PChannelDivert MOZ_ASSERT(diverter); auto p = static_cast(diverter); p->DivertTo(this); - mozilla::unused << p->Send__delete__(p); + mozilla::Unused << p->Send__delete__(p); return true; } @@ -309,7 +309,7 @@ PSMContentDownloaderChild::OnStartRequest(nsIRequest* request, nsISupports* cont return NS_ERROR_FAILURE; } - mozilla::unused << SendOnStartRequest(contentLength); + mozilla::Unused << SendOnStartRequest(contentLength); return NS_OK; } @@ -326,7 +326,7 @@ PSMContentDownloaderChild::OnDataAvailable(nsIRequest* request, return rv; } - mozilla::unused << SendOnDataAvailable(chunk, aSourceOffset, aLength); + mozilla::Unused << SendOnDataAvailable(chunk, aSourceOffset, aLength); return NS_OK; } @@ -335,7 +335,7 @@ PSMContentDownloaderChild::OnStopRequest(nsIRequest* request, nsISupports* context, nsresult aStatus) { - mozilla::unused << SendOnStopRequest(aStatus); + mozilla::Unused << SendOnStopRequest(aStatus); return NS_OK; } diff --git a/security/manager/ssl/SSLServerCertVerification.cpp b/security/manager/ssl/SSLServerCertVerification.cpp index 7471c44a7106c..c70600fbcad6b 100644 --- a/security/manager/ssl/SSLServerCertVerification.cpp +++ b/security/manager/ssl/SSLServerCertVerification.cpp @@ -454,7 +454,7 @@ CertErrorRunnable::CheckCertOverrides() mFdForLogging, this)); // "Use" mFdForLogging in non-PR_LOGGING builds, too, to suppress // clang's -Wunused-private-field build warning for this variable: - unused << mFdForLogging; + Unused << mFdForLogging; if (!NS_IsMainThread()) { NS_ERROR("CertErrorRunnable::CheckCertOverrides called off main thread"); diff --git a/security/manager/ssl/SharedSSLState.cpp b/security/manager/ssl/SharedSSLState.cpp index b783331a90a8e..48aeb9001f77e 100644 --- a/security/manager/ssl/SharedSSLState.cpp +++ b/security/manager/ssl/SharedSSLState.cpp @@ -22,7 +22,7 @@ using mozilla::psm::SyncRunnableBase; using mozilla::Atomic; -using mozilla::unused; +using mozilla::Unused; namespace { diff --git a/security/manager/ssl/nsKeygenHandlerContent.cpp b/security/manager/ssl/nsKeygenHandlerContent.cpp index 3f3b422fe8ee6..6aa5ce7d8ffac 100644 --- a/security/manager/ssl/nsKeygenHandlerContent.cpp +++ b/security/manager/ssl/nsKeygenHandlerContent.cpp @@ -19,7 +19,7 @@ #include "nsKeygenHandler.h" using mozilla::dom::ContentChild; -using mozilla::unused; +using mozilla::Unused; NS_IMPL_ISUPPORTS(nsKeygenFormProcessorContent, nsIFormProcessor) @@ -45,7 +45,7 @@ nsKeygenFormProcessorContent::ProcessValue(nsIDOMHTMLElement* aElement, nsString oldValue(aValue); nsString newValue; - unused << child->SendKeygenProcessValue(oldValue, challengeValue, + Unused << child->SendKeygenProcessValue(oldValue, challengeValue, keyTypeValue, keyParamsValue, &newValue); @@ -70,7 +70,7 @@ nsKeygenFormProcessorContent::ProvideContent(const nsAString& aFormType, nsAString& aAttribute) { nsString attribute; - unused << + Unused << ContentChild::GetSingleton()->SendKeygenProvideContent(&attribute, &aContent); aAttribute.Assign(attribute); diff --git a/security/manager/ssl/nsSmartCardMonitor.cpp b/security/manager/ssl/nsSmartCardMonitor.cpp index 018d5addead3e..da13f289b511d 100644 --- a/security/manager/ssl/nsSmartCardMonitor.cpp +++ b/security/manager/ssl/nsSmartCardMonitor.cpp @@ -152,7 +152,7 @@ SmartCardThreadList::Add(SmartCardMonitoringThread* thread) SmartCardThreadEntry* current = new SmartCardThreadEntry(thread, head, nullptr, &head); // OK to forget current here, it's on the list. - unused << current; + Unused << current; return thread->Start(); } diff --git a/security/sandbox/linux/Sandbox.cpp b/security/sandbox/linux/Sandbox.cpp index 20612858f3a50..8e03027f3ce23 100644 --- a/security/sandbox/linux/Sandbox.cpp +++ b/security/sandbox/linux/Sandbox.cpp @@ -168,7 +168,7 @@ InstallSigSysHandler(void) struct sigaction act; // Ensure that the Chromium handler is installed. - unused << sandbox::Trap::Registry(); + Unused << sandbox::Trap::Registry(); // If the signal handling state isn't as expected, crash now instead // of crashing later (and more confusingly) when SIGSYS happens. @@ -439,7 +439,7 @@ BroadcastSetThreadSandbox(const sock_fprog* aFilter) signum, oldHandler); MOZ_CRASH(); } - unused << closedir(taskdp); + Unused << closedir(taskdp); // And now, deprivilege the main thread: SetThreadSandbox(); gSetSandboxFilter = nullptr; diff --git a/security/sandbox/linux/SandboxUtil.cpp b/security/sandbox/linux/SandboxUtil.cpp index 623d41ac602be..f202a60e413e4 100644 --- a/security/sandbox/linux/SandboxUtil.cpp +++ b/security/sandbox/linux/SandboxUtil.cpp @@ -89,7 +89,7 @@ UnshareUserNamespace() MOZ_CRASH("Failed to write /proc/self/uid_map"); } - unused << WriteStringToFile("/proc/self/setgroups", "deny", 4); + Unused << WriteStringToFile("/proc/self/setgroups", "deny", 4); len = size_t(snprintf(buf, sizeof(buf), "%u %u 1\n", gid, gid)); MOZ_ASSERT(len < sizeof(buf)); diff --git a/security/sandbox/linux/glue/SandboxCrash.cpp b/security/sandbox/linux/glue/SandboxCrash.cpp index b02251698931c..eafe379c820f5 100644 --- a/security/sandbox/linux/glue/SandboxCrash.cpp +++ b/security/sandbox/linux/glue/SandboxCrash.cpp @@ -51,11 +51,11 @@ SandboxLogJSStack(void) // Don't stop unwinding if an attribute can't be read. fileName.SetIsVoid(true); - unused << frame->GetFilename(fileName); + Unused << frame->GetFilename(fileName); lineNumber = 0; - unused << frame->GetLineNumber(&lineNumber); + Unused << frame->GetLineNumber(&lineNumber); funName.SetIsVoid(true); - unused << frame->GetName(funName); + Unused << frame->GetName(funName); if (!funName.IsVoid() || !fileName.IsVoid()) { SANDBOX_LOG_ERROR("JS frame %d: %s %s line %d", i, diff --git a/toolkit/components/parentalcontrols/nsParentalControlsServiceDefault.cpp b/toolkit/components/parentalcontrols/nsParentalControlsServiceDefault.cpp index ddb8a5a5e62d3..4af3c8a5995ec 100644 --- a/toolkit/components/parentalcontrols/nsParentalControlsServiceDefault.cpp +++ b/toolkit/components/parentalcontrols/nsParentalControlsServiceDefault.cpp @@ -13,7 +13,7 @@ NS_IMPL_ISUPPORTS(nsParentalControlsService, nsIParentalControlsService) nsParentalControlsService::nsParentalControlsService() : mEnabled(false) { - mozilla::unused << mEnabled; + mozilla::Unused << mEnabled; } nsParentalControlsService::~nsParentalControlsService() diff --git a/toolkit/components/perfmonitoring/nsPerformanceStats.cpp b/toolkit/components/perfmonitoring/nsPerformanceStats.cpp index 43a4781131879..b20066fb86ccb 100644 --- a/toolkit/components/perfmonitoring/nsPerformanceStats.cpp +++ b/toolkit/components/perfmonitoring/nsPerformanceStats.cpp @@ -439,12 +439,12 @@ nsPerformanceStatsService::Dispose() // Clear up and disconnect from JSAPI. js::DisposePerformanceMonitoring(mRuntime); - mozilla::unused << js::SetStopwatchIsMonitoringCPOW(mRuntime, false); - mozilla::unused << js::SetStopwatchIsMonitoringJank(mRuntime, false); + mozilla::Unused << js::SetStopwatchIsMonitoringCPOW(mRuntime, false); + mozilla::Unused << js::SetStopwatchIsMonitoringJank(mRuntime, false); - mozilla::unused << js::SetStopwatchStartCallback(mRuntime, nullptr, nullptr); - mozilla::unused << js::SetStopwatchCommitCallback(mRuntime, nullptr, nullptr); - mozilla::unused << js::SetGetPerformanceGroupsCallback(mRuntime, nullptr, nullptr); + mozilla::Unused << js::SetStopwatchStartCallback(mRuntime, nullptr, nullptr); + mozilla::Unused << js::SetStopwatchCommitCallback(mRuntime, nullptr, nullptr); + mozilla::Unused << js::SetGetPerformanceGroupsCallback(mRuntime, nullptr, nullptr); // At this stage, the JS VM may still be holding references to // instances of PerformanceGroup on the stack. To let the service be @@ -674,7 +674,7 @@ nsPerformanceStatsService::GetSnapshot(JSContext* cx, nsIPerformanceSnapshot * * js::GetPerfMonitoringTestCpuRescheduling(JS_GetRuntime(cx), &mProcessStayed, &mProcessMoved); if (++mProcessUpdateCounter % 10 == 0) { - mozilla::unused << UpdateTelemetry(); + mozilla::Unused << UpdateTelemetry(); } snapshot.forget(aSnapshot); @@ -986,7 +986,7 @@ nsPerformanceGroup::nsPerformanceGroup(nsPerformanceStatsService* service, , mService(service) , mScope(scope) { - mozilla::unused << mService->mGroups.PutEntry(this); + mozilla::Unused << mService->mGroups.PutEntry(this); #if defined(DEBUG) if (scope == GroupScope::ADDON) { diff --git a/toolkit/components/places/History.cpp b/toolkit/components/places/History.cpp index 7086e8a4ac89d..c17b86d87a164 100644 --- a/toolkit/components/places/History.cpp +++ b/toolkit/components/places/History.cpp @@ -46,7 +46,7 @@ using namespace mozilla::dom; using namespace mozilla::ipc; -using mozilla::unused; +using mozilla::Unused; namespace mozilla { namespace places { @@ -1985,7 +1985,7 @@ History::NotifyVisited(nsIURI* aURI) URIParams uri; SerializeURI(aURI, uri); for (uint32_t i = 0; i < cplist.Length(); ++i) { - unused << cplist[i]->SendNotifyVisited(uri); + Unused << cplist[i]->SendNotifyVisited(uri); } } } diff --git a/toolkit/components/terminator/nsTerminator.cpp b/toolkit/components/terminator/nsTerminator.cpp index c330263ad9552..b87979c3e8104 100644 --- a/toolkit/components/terminator/nsTerminator.cpp +++ b/toolkit/components/terminator/nsTerminator.cpp @@ -222,8 +222,8 @@ void RunWriter(void* arg) tmpFilePath.AppendLiteral(".tmp"); // Cleanup any file leftover from a previous run - unused << PR_Delete(tmpFilePath.get()); - unused << PR_Delete(destinationPath.get()); + Unused << PR_Delete(tmpFilePath.get()); + Unused << PR_Delete(destinationPath.get()); while (true) { // @@ -530,7 +530,7 @@ nsTerminator::UpdateCrashReport(const char* aTopic) // In case of crash, we wish to know where in shutdown we are nsAutoCString report(aTopic); - unused << CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("ShutdownProgress"), + Unused << CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("ShutdownProgress"), report); #endif // defined(MOZ_CRASH_REPORTER) } diff --git a/toolkit/crashreporter/nsExceptionHandler.cpp b/toolkit/crashreporter/nsExceptionHandler.cpp index e4195b752493e..241d730079230 100644 --- a/toolkit/crashreporter/nsExceptionHandler.cpp +++ b/toolkit/crashreporter/nsExceptionHandler.cpp @@ -599,7 +599,7 @@ class PlatformWriter if (!Valid()) { return; } - unused << sys_write(mFD, buffer, len); + Unused << sys_write(mFD, buffer, len); } private: @@ -933,12 +933,12 @@ bool MinidumpCallback( // need to clobber this, as libcurl might load NSS, // and we want it to load the system NSS. unsetenv("LD_LIBRARY_PATH"); - unused << execl(crashReporterPath, + Unused << execl(crashReporterPath, crashReporterPath, minidumpPath, (char*)0); #else // Invoke the reportCrash activity using am if (androidUserSerial) { - unused << execlp("/system/bin/am", + Unused << execlp("/system/bin/am", "/system/bin/am", "start", "--user", androidUserSerial, @@ -947,7 +947,7 @@ bool MinidumpCallback( "--es", "minidumpPath", minidumpPath, (char*)0); } else { - unused << execlp("/system/bin/am", + Unused << execlp("/system/bin/am", "/system/bin/am", "start", "-a", "org.mozilla.gecko.reportCrash", @@ -962,7 +962,7 @@ bool MinidumpCallback( // We need to wait on the 'am start' command above to finish, otherwise everything will // be killed by the ActivityManager as soon as the signal handler exits int status; - unused << HANDLE_EINTR(sys_waitpid(pid, &status, __WALL)); + Unused << HANDLE_EINTR(sys_waitpid(pid, &status, __WALL)); #endif } #endif // XP_MACOSX diff --git a/toolkit/crashreporter/test/nsTestCrasher.cpp b/toolkit/crashreporter/test/nsTestCrasher.cpp index 6287999a5615e..64c3eafb8df03 100644 --- a/toolkit/crashreporter/test/nsTestCrasher.cpp +++ b/toolkit/crashreporter/test/nsTestCrasher.cpp @@ -68,9 +68,9 @@ void Crash(int16_t how) break; } case CRASH_OOM: { - mozilla::unused << moz_xmalloc((size_t) -1); - mozilla::unused << moz_xmalloc((size_t) -1); - mozilla::unused << moz_xmalloc((size_t) -1); + mozilla::Unused << moz_xmalloc((size_t) -1); + mozilla::Unused << moz_xmalloc((size_t) -1); + mozilla::Unused << moz_xmalloc((size_t) -1); break; } case CRASH_MOZ_CRASH: { diff --git a/toolkit/system/gnome/nsPackageKitService.cpp b/toolkit/system/gnome/nsPackageKitService.cpp index ed89153fa3dd0..bfd8285740224 100644 --- a/toolkit/system/gnome/nsPackageKitService.cpp +++ b/toolkit/system/gnome/nsPackageKitService.cpp @@ -158,7 +158,7 @@ InstallPackagesProxyCallCallback(GObject *aSourceObject, } g_object_unref(proxy); - unused << observer.forget().take(); + Unused << observer.forget().take(); } static void diff --git a/toolkit/xre/glxtest.cpp b/toolkit/xre/glxtest.cpp index 0290795237dc7..7812d83bb3c1e 100644 --- a/toolkit/xre/glxtest.cpp +++ b/toolkit/xre/glxtest.cpp @@ -83,8 +83,8 @@ static func_ptr_type cast(void *ptr) static void fatal_error(const char *str) { - mozilla::unused << write(write_end_of_the_pipe, str, strlen(str)); - mozilla::unused << write(write_end_of_the_pipe, "\n", 1); + mozilla::Unused << write(write_end_of_the_pipe, str, strlen(str)); + mozilla::Unused << write(write_end_of_the_pipe, "\n", 1); _exit(EXIT_FAILURE); } @@ -98,7 +98,7 @@ x_error_handler(Display *, XErrorEvent *ev) ev->error_code, ev->request_code, ev->minor_code); - mozilla::unused << write(write_end_of_the_pipe, buf, length); + mozilla::Unused << write(write_end_of_the_pipe, buf, length); _exit(EXIT_FAILURE); return 0; } @@ -251,7 +251,7 @@ void glxtest() dlclose(libgl); ///// Finally write data to the pipe - mozilla::unused << write(write_end_of_the_pipe, buf, length); + mozilla::Unused << write(write_end_of_the_pipe, buf, length); } } diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp index e6fb4761c2e3c..7bcc31ade2f5c 100644 --- a/toolkit/xre/nsAppRunner.cpp +++ b/toolkit/xre/nsAppRunner.cpp @@ -257,7 +257,7 @@ int (*RunGTest)() = 0; } // namespace mozilla using namespace mozilla; -using mozilla::unused; +using mozilla::Unused; using mozilla::scache::StartupCache; using mozilla::dom::ContentParent; using mozilla::dom::ContentChild; @@ -4481,7 +4481,7 @@ XRE_CreateStatsObject() // Note: purposely leaked base::StatisticsRecorder* statistics_recorder = new base::StatisticsRecorder(); MOZ_LSAN_INTENTIONALLY_LEAK_OBJECT(statistics_recorder); - unused << statistics_recorder; + Unused << statistics_recorder; } int diff --git a/tools/memory-profiler/UncensoredAllocator.cpp b/tools/memory-profiler/UncensoredAllocator.cpp index d137eec2cac12..8d87c709c88eb 100644 --- a/tools/memory-profiler/UncensoredAllocator.cpp +++ b/tools/memory-profiler/UncensoredAllocator.cpp @@ -79,7 +79,7 @@ MallocHook::Initialize() mMallocHook.malloc_hook = SampleNative; ReplaceMallocBridge* bridge = ReplaceMallocBridge::Get(3); if (bridge) { - mozilla::unused << bridge->RegisterHook("memory-profiler", nullptr, nullptr); + mozilla::Unused << bridge->RegisterHook("memory-profiler", nullptr, nullptr); } if (!mEnabledTLS.initialized()) { bool success = mEnabledTLS.init(); diff --git a/tools/profiler/tasktracer/GeckoTaskTracer.cpp b/tools/profiler/tasktracer/GeckoTaskTracer.cpp index 6b0a94a9b3497..154910d1a00ec 100644 --- a/tools/profiler/tasktracer/GeckoTaskTracer.cpp +++ b/tools/profiler/tasktracer/GeckoTaskTracer.cpp @@ -219,7 +219,7 @@ InitTaskTracer(uint32_t aFlags) sTraceInfos = new nsTArray>(); if (!sTraceInfoTLS.initialized()) { - unused << sTraceInfoTLS.init(); + Unused << sTraceInfoTLS.init(); } } diff --git a/uriloader/exthandler/ExternalHelperAppParent.cpp b/uriloader/exthandler/ExternalHelperAppParent.cpp index 352c05bbffbde..1921cfa308763 100644 --- a/uriloader/exthandler/ExternalHelperAppParent.cpp +++ b/uriloader/exthandler/ExternalHelperAppParent.cpp @@ -101,7 +101,7 @@ void ExternalHelperAppParent::Delete() { if (!mIPCClosed) { - unused << Send__delete__(this); + Unused << Send__delete__(this); } } @@ -154,7 +154,7 @@ ExternalHelperAppParent::RecvDivertToParentUsing(PChannelDiverterParent* diverte auto p = static_cast(diverter); p->DivertTo(this); mDiverted = true; - unused << p->Send__delete__(p); + Unused << p->Send__delete__(p); return true; } @@ -228,7 +228,7 @@ NS_IMETHODIMP ExternalHelperAppParent::Cancel(nsresult aStatus) { mStatus = aStatus; - unused << SendCancel(aStatus); + Unused << SendCancel(aStatus); return NS_OK; } diff --git a/uriloader/prefetch/OfflineCacheUpdateParent.cpp b/uriloader/prefetch/OfflineCacheUpdateParent.cpp index 96721306d1440..ab54fc39da7e4 100644 --- a/uriloader/prefetch/OfflineCacheUpdateParent.cpp +++ b/uriloader/prefetch/OfflineCacheUpdateParent.cpp @@ -156,7 +156,7 @@ OfflineCacheUpdateParent::UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uin uint64_t byteProgress; aUpdate->GetByteProgress(&byteProgress); - unused << SendNotifyStateEvent(state, byteProgress); + Unused << SendNotifyStateEvent(state, byteProgress); if (state == nsIOfflineCacheUpdateObserver::STATE_FINISHED) { // Tell the child the particulars after the update has finished. @@ -167,7 +167,7 @@ OfflineCacheUpdateParent::UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uin bool succeeded; aUpdate->GetSucceeded(&succeeded); - unused << SendFinish(succeeded, isUpgrade); + Unused << SendFinish(succeeded, isUpgrade); } return NS_OK; @@ -186,7 +186,7 @@ OfflineCacheUpdateParent::ApplicationCacheAvailable(nsIApplicationCache *aApplic nsCString cacheGroupId; aApplicationCache->GetGroupID(cacheGroupId); - unused << SendAssociateDocuments(cacheGroupId, cacheClientId); + Unused << SendAssociateDocuments(cacheGroupId, cacheClientId); return NS_OK; } diff --git a/uriloader/prefetch/nsOfflineCacheUpdateService.cpp b/uriloader/prefetch/nsOfflineCacheUpdateService.cpp index 5eec45ecc51bf..6fd80ade9493d 100644 --- a/uriloader/prefetch/nsOfflineCacheUpdateService.cpp +++ b/uriloader/prefetch/nsOfflineCacheUpdateService.cpp @@ -400,7 +400,7 @@ nsOfflineCacheUpdateService::ScheduleOnDocumentStop(nsIURI *aManifestURI, NS_ENSURE_SUCCESS(rv, rv); // The update will release when it has scheduled itself. - unused << update.forget(); + Unused << update.forget(); return NS_OK; } diff --git a/widget/PuppetWidget.cpp b/widget/PuppetWidget.cpp index 6bc4c7dcb3a90..a7f1438167d1d 100644 --- a/widget/PuppetWidget.cpp +++ b/widget/PuppetWidget.cpp @@ -338,11 +338,11 @@ PuppetWidget::DispatchInputEvent(WidgetInputEvent* aEvent) switch (aEvent->mClass) { case eMouseEventClass: - unused << + Unused << mTabChild->SendDispatchMouseEvent(*aEvent->AsMouseEvent()); break; case eKeyboardEventClass: - unused << + Unused << mTabChild->SendDispatchKeyboardEvent(*aEvent->AsKeyboardEvent()); break; default: @@ -367,7 +367,7 @@ PuppetWidget::DispatchAPZAwareEvent(WidgetInputEvent* aEvent) switch (aEvent->mClass) { case eWheelEventClass: - unused << + Unused << mTabChild->SendDispatchWheelEvent(*aEvent->AsWheelEvent()); break; default: diff --git a/widget/ScreenProxy.cpp b/widget/ScreenProxy.cpp index 6481e85d9f3ef..3f750e154676c 100644 --- a/widget/ScreenProxy.cpp +++ b/widget/ScreenProxy.cpp @@ -147,7 +147,7 @@ ScreenProxy::EnsureCacheIsValid() // Kick off a synchronous IPC call to the parent to get the // most up-to-date information. ScreenDetails details; - unused << mScreenManager->SendScreenRefresh(mId, &details, &success); + Unused << mScreenManager->SendScreenRefresh(mId, &details, &success); if (!success) { NS_WARNING("Updating a ScreenProxy in the child process failed on parent side."); return false; diff --git a/widget/android/jni/Natives.h b/widget/android/jni/Natives.h index 722996b501ffb..a798d8c1e8435 100644 --- a/widget/android/jni/Natives.h +++ b/widget/android/jni/Natives.h @@ -346,7 +346,7 @@ class ProxyNativeCall int dummy[] = { (ProxyArg::Clear(env, Get(mArgs)), 0)... }; - mozilla::unused << dummy; + mozilla::Unused << dummy; } public: diff --git a/widget/android/nsAppShell.h b/widget/android/nsAppShell.h index 583d03262f6a3..02377ff9e8fb7 100644 --- a/widget/android/nsAppShell.h +++ b/widget/android/nsAppShell.h @@ -157,7 +157,7 @@ class nsAppShell : event->PostTo(mQueue); if (event->isInList()) { // Ownership of event object transfers to the queue. - mozilla::unused << event.release(); + mozilla::Unused << event.release(); } lock.NotifyAll(); } diff --git a/widget/android/nsWindow.cpp b/widget/android/nsWindow.cpp index 094c94094c3cc..a367981548281 100644 --- a/widget/android/nsWindow.cpp +++ b/widget/android/nsWindow.cpp @@ -25,7 +25,7 @@ using mozilla::dom::ContentParent; using mozilla::dom::ContentChild; -using mozilla::unused; +using mozilla::Unused; #include "nsWindow.h" @@ -117,7 +117,7 @@ class ContentCreationNotifier final : public nsIObserver if (!strcmp(aTopic, "ipc:content-created")) { nsCOMPtr cpo = do_QueryInterface(aSubject); ContentParent* cp = static_cast(cpo.get()); - unused << cp->SendScreenSizeChanged(gAndroidScreenBounds); + Unused << cp->SendScreenSizeChanged(gAndroidScreenBounds); } else if (!strcmp(aTopic, "xpcom-shutdown")) { nsCOMPtr obs = mozilla::services::GetObserverService(); @@ -1134,7 +1134,7 @@ nsWindow::OnGlobalAndroidEvent(AndroidGeckoEvent *ae) nsTArray cplist; ContentParent::GetAll(cplist); for (uint32_t i = 0; i < cplist.Length(); ++i) - unused << cplist[i]->SendScreenSizeChanged(gAndroidScreenBounds); + Unused << cplist[i]->SendScreenSizeChanged(gAndroidScreenBounds); if (gContentCreationNotifier) break; diff --git a/widget/cocoa/TextInputHandler.mm b/widget/cocoa/TextInputHandler.mm index b8594f03eb601..420bcea67e8b7 100644 --- a/widget/cocoa/TextInputHandler.mm +++ b/widget/cocoa/TextInputHandler.mm @@ -2315,7 +2315,7 @@ WidgetContentCommandEvent deleteCommandEvent(true, eContentCommandDelete, nsTArray children; dom::ContentParent::GetAll(children); for (uint32_t i = 0; i < children.Length(); i++) { - unused << children[i]->SendBidiKeyboardNotify(tis.IsForRTLLanguage()); + Unused << children[i]->SendBidiKeyboardNotify(tis.IsForRTLLanguage()); } sCachedIsForRTLLangage = tis.IsForRTLLanguage(); } diff --git a/widget/cocoa/nsClipboard.mm b/widget/cocoa/nsClipboard.mm index 83e830c74badf..abc7031e88f1c 100644 --- a/widget/cocoa/nsClipboard.mm +++ b/widget/cocoa/nsClipboard.mm @@ -59,7 +59,7 @@ } @catch (NSException* e) { NS_WARNING(nsPrintfCString("Exception raised while getting data from the pasteboard: \"%s - %s\"", [[e name] UTF8String], [[e reason] UTF8String]).get()); - mozilla::unused << e; + mozilla::Unused << e; } return data; } diff --git a/widget/gonk/ProcessOrientation.cpp b/widget/gonk/ProcessOrientation.cpp index 3a281dca392d5..7175ea8c4a82a 100644 --- a/widget/gonk/ProcessOrientation.cpp +++ b/widget/gonk/ProcessOrientation.cpp @@ -325,9 +325,9 @@ ProcessOrientation::OnSensorChanged(const SensorData& event, // Avoid unused-but-set compile warnings for these variables, when LOGD is // a no-op, as it is by default: - unused << isAccelerating; - unused << isFlat; - unused << isSwinging; + Unused << isAccelerating; + Unused << isFlat; + Unused << isSwinging; // Tell the listener. if (mProposedRotation != oldProposedRotation && mProposedRotation >= 0) { diff --git a/widget/gtk/nsAppShell.cpp b/widget/gtk/nsAppShell.cpp index 4ab8e231ea367..5c7a7168a42d6 100644 --- a/widget/gtk/nsAppShell.cpp +++ b/widget/gtk/nsAppShell.cpp @@ -22,7 +22,7 @@ #include "WakeLockListener.h" #endif -using mozilla::unused; +using mozilla::Unused; #define NOTIFY_TOKEN 0xFA @@ -53,7 +53,7 @@ nsAppShell::EventProcessorCallback(GIOChannel *source, nsAppShell *self = static_cast(data); unsigned char c; - unused << read(self->mPipeFDs[0], &c, 1); + Unused << read(self->mPipeFDs[0], &c, 1); NS_ASSERTION(c == (unsigned char) NOTIFY_TOKEN, "wrong token"); self->NativeEventCallback(); @@ -167,7 +167,7 @@ void nsAppShell::ScheduleNativeEventCallback() { unsigned char buf[] = { NOTIFY_TOKEN }; - unused << write(mPipeFDs[1], buf, 1); + Unused << write(mPipeFDs[1], buf, 1); } bool diff --git a/widget/gtk/nsSound.cpp b/widget/gtk/nsSound.cpp index f745cc1863aaf..5bfe0eda0514f 100644 --- a/widget/gtk/nsSound.cpp +++ b/widget/gtk/nsSound.cpp @@ -81,7 +81,7 @@ struct ScopedCanberraFile { } void forget() { - mozilla::unused << mFile.forget(); + mozilla::Unused << mFile.forget(); } nsIFile* operator->() { return mFile; } operator nsIFile*() { return mFile; } diff --git a/widget/nsBaseDragService.cpp b/widget/nsBaseDragService.cpp index aed2b8b8ad178..396581418c805 100644 --- a/widget/nsBaseDragService.cpp +++ b/widget/nsBaseDragService.cpp @@ -393,7 +393,7 @@ nsBaseDragService::EndDragSession(bool aDoneDrag) } for (uint32_t i = 0; i < mChildProcesses.Length(); ++i) { - mozilla::unused << mChildProcesses[i]->SendEndDragSession(aDoneDrag, + mozilla::Unused << mChildProcesses[i]->SendEndDragSession(aDoneDrag, mUserCancelled); } mChildProcesses.Clear(); diff --git a/widget/nsDragServiceProxy.cpp b/widget/nsDragServiceProxy.cpp index 8fde0c47fc517..ef6eb5986c547 100644 --- a/widget/nsDragServiceProxy.cpp +++ b/widget/nsDragServiceProxy.cpp @@ -58,7 +58,7 @@ nsDragServiceProxy::InvokeDragSessionImpl(nsISupportsArray* aArrayTransferables, nsContentUtils::GetSurfaceData(dataSurface, &length, &stride); nsDependentCString dragImage(surfaceData.get(), length); - mozilla::unused << + mozilla::Unused << child->SendInvokeDragSession(dataTransfers, aActionType, dragImage, size.width, size.height, stride, static_cast(dataSurface->GetFormat()), @@ -68,7 +68,7 @@ nsDragServiceProxy::InvokeDragSessionImpl(nsISupportsArray* aArrayTransferables, } } - mozilla::unused << child->SendInvokeDragSession(dataTransfers, aActionType, + mozilla::Unused << child->SendInvokeDragSession(dataTransfers, aActionType, nsCString(), 0, 0, 0, 0, 0, 0); StartDragSession(); diff --git a/widget/nsScreenManagerProxy.cpp b/widget/nsScreenManagerProxy.cpp index f6bc2478c0ad0..6f0893f10e70e 100644 --- a/widget/nsScreenManagerProxy.cpp +++ b/widget/nsScreenManagerProxy.cpp @@ -28,7 +28,7 @@ nsScreenManagerProxy::nsScreenManagerProxy() , mCacheWillInvalidate(false) { bool success = false; - unused << ContentChild::GetSingleton()->SendPScreenManagerConstructor( + Unused << ContentChild::GetSingleton()->SendPScreenManagerConstructor( this, &mNumberOfScreens, &mSystemDefaultScale, @@ -64,7 +64,7 @@ nsScreenManagerProxy::GetPrimaryScreen(nsIScreen** outScreen) if (!mPrimaryScreen) { ScreenDetails details; bool success = false; - unused << SendGetPrimaryScreen(&details, &success); + Unused << SendGetPrimaryScreen(&details, &success); if (!success) { return NS_ERROR_FAILURE; } @@ -92,7 +92,7 @@ nsScreenManagerProxy::ScreenForRect(int32_t inLeft, { bool success = false; ScreenDetails details; - unused << SendScreenForRect(inLeft, inTop, inWidth, inHeight, &details, &success); + Unused << SendScreenForRect(inLeft, inTop, inWidth, inHeight, &details, &success); if (!success) { return NS_ERROR_FAILURE; } @@ -126,7 +126,7 @@ nsScreenManagerProxy::ScreenForNativeWidget(void* aWidget, // for it. bool success = false; ScreenDetails details; - unused << SendScreenForBrowser(tabChild->GetTabId(), &details, &success); + Unused << SendScreenForBrowser(tabChild->GetTabId(), &details, &success); if (!success) { return NS_ERROR_FAILURE; } @@ -177,7 +177,7 @@ nsScreenManagerProxy::EnsureCacheIsValid() bool success = false; // Kick off a synchronous IPC call to the parent to get the // most up-to-date information. - unused << SendRefresh(&mNumberOfScreens, &mSystemDefaultScale, &success); + Unused << SendRefresh(&mNumberOfScreens, &mSystemDefaultScale, &success); if (!success) { NS_WARNING("Refreshing nsScreenManagerProxy failed in the parent process."); return false; diff --git a/widget/windows/nsWindowGfx.cpp b/widget/windows/nsWindowGfx.cpp index 9c173d195bba1..b0d086b17521f 100644 --- a/widget/windows/nsWindowGfx.cpp +++ b/widget/windows/nsWindowGfx.cpp @@ -205,7 +205,7 @@ bool nsWindow::OnPaint(HDC aDC, uint32_t aNestingLevel) PluginInstanceParent* instance = reinterpret_cast( ::GetPropW(mWnd, L"PluginInstanceParentProperty")); if (instance) { - unused << instance->CallUpdateWindow(); + Unused << instance->CallUpdateWindow(); } else { // We should never get here since in-process plugins should have // subclassed our HWND and handled WM_PAINT, but in some cases that diff --git a/xpcom/base/SystemMemoryReporter.cpp b/xpcom/base/SystemMemoryReporter.cpp index 3438686dbd202..f866126fa8eb2 100644 --- a/xpcom/base/SystemMemoryReporter.cpp +++ b/xpcom/base/SystemMemoryReporter.cpp @@ -728,10 +728,10 @@ class SystemReporter final : public nsIMemoryReporter uint64_t size; // Ignore the header line. - unused << fgets(buffer, kBufferLen, iommu); + Unused << fgets(buffer, kBufferLen, iommu); // Ignore the separator line. - unused << fgets(buffer, kBufferLen, iommu); + Unused << fgets(buffer, kBufferLen, iommu); const char* const kSep = "----"; const size_t kSepLen = 4; @@ -748,7 +748,7 @@ class SystemReporter final : public nsIMemoryReporter } // Ignore the orphaned header. - unused << fgets(buffer, kBufferLen, iommu); + Unused << fgets(buffer, kBufferLen, iommu); // Read orphaned entries. while (fgets(buffer, kBufferLen, iommu) && @@ -775,7 +775,7 @@ class SystemReporter final : public nsIMemoryReporter } uint64_t size = 0; - unused << fscanf(sizeFile, "%" SCNu64, &size); + Unused << fscanf(sizeFile, "%" SCNu64, &size); fclose(sizeFile); return size; @@ -1017,7 +1017,7 @@ class SystemReporter final : public nsIMemoryReporter // Bypass the header line. char buff[1024]; - unused << fgets(buff, 1024, memFile); + Unused << fgets(buff, 1024, memFile); while (fscanf(memFile, kScanFormat, &gpuaddr, &useraddr, &size, &id, flags, type, usage, &sglen) == kNumFields) { diff --git a/xpcom/base/nsDumpUtils.cpp b/xpcom/base/nsDumpUtils.cpp index 35b0a3862b22b..160a1df61ac96 100644 --- a/xpcom/base/nsDumpUtils.cpp +++ b/xpcom/base/nsDumpUtils.cpp @@ -60,7 +60,7 @@ DumpSignalHandler(int aSignum) if (sDumpPipeWriteFd != -1) { uint8_t signum = static_cast(aSignum); - unused << write(sDumpPipeWriteFd, &signum, sizeof(signum)); + Unused << write(sDumpPipeWriteFd, &signum, sizeof(signum)); } } diff --git a/xpcom/base/nsMemoryInfoDumper.cpp b/xpcom/base/nsMemoryInfoDumper.cpp index b82de853de70c..9d84f47a6cb19 100644 --- a/xpcom/base/nsMemoryInfoDumper.cpp +++ b/xpcom/base/nsMemoryInfoDumper.cpp @@ -342,7 +342,7 @@ class nsDumpGCAndCCLogsCallbackHolder final private: ~nsDumpGCAndCCLogsCallbackHolder() { - unused << mCallback->OnFinish(); + Unused << mCallback->OnFinish(); } nsCOMPtr mCallback; @@ -372,7 +372,7 @@ nsMemoryInfoDumper::DumpGCAndCCLogsToFile(const nsAString& aIdentifier, logSink->SetFilenameIdentifier(identifier); logSink->SetProcessIdentifier(cp->Pid()); - unused << cp->CycleCollectWithLogs(aDumpAllTraces, logSink, + Unused << cp->CycleCollectWithLogs(aDumpAllTraces, logSink, callbackHolder); } } diff --git a/xpcom/ds/nsAtomTable.cpp b/xpcom/ds/nsAtomTable.cpp index 90ed556172d65..6ca0e8001f574 100644 --- a/xpcom/ds/nsAtomTable.cpp +++ b/xpcom/ds/nsAtomTable.cpp @@ -368,7 +368,7 @@ AtomImpl::AtomImpl(const nsAString& aString, uint32_t aHash) NS_ASSERTION(Equals(aString), "correct data"); // Take ownership of buffer - mozilla::unused << buf.forget(); + mozilla::Unused << buf.forget(); } AtomImpl::AtomImpl(nsStringBuffer* aStringBuffer, uint32_t aLength, diff --git a/xpcom/tests/TestTArray.cpp b/xpcom/tests/TestTArray.cpp index 3d832e02efc41..f15f2d4254009 100644 --- a/xpcom/tests/TestTArray.cpp +++ b/xpcom/tests/TestTArray.cpp @@ -1118,7 +1118,7 @@ static bool test_SetLengthAndRetainStorage_no_ctor() { } while (0) // Setup test arrays. - FOR_EACH(; unused << , .SetLength(N, fallible)); + FOR_EACH(; Unused << , .SetLength(N, fallible)); for (int n = 0; n < N; ++n) { FOR_EACH(;, [n] = n); } diff --git a/xpcom/tests/gtest/TestCloneInputStream.cpp b/xpcom/tests/gtest/TestCloneInputStream.cpp index 9aaa93c4ae7a3..3c213b42f293c 100644 --- a/xpcom/tests/gtest/TestCloneInputStream.cpp +++ b/xpcom/tests/gtest/TestCloneInputStream.cpp @@ -106,7 +106,7 @@ TEST(CloneInputStream, NonCloneableInput_Fallback) // but AFAICT, gtest does not support async test completion. uint64_t available; do { - mozilla::unused << PR_Sleep(PR_INTERVAL_NO_WAIT); + mozilla::Unused << PR_Sleep(PR_INTERVAL_NO_WAIT); rv = stream->Available(&available); ASSERT_TRUE(NS_SUCCEEDED(rv)); } while(available < inputString.Length()); diff --git a/xpcom/threads/AbstractThread.cpp b/xpcom/threads/AbstractThread.cpp index 24af1c875b446..50eb76ea46229 100644 --- a/xpcom/threads/AbstractThread.cpp +++ b/xpcom/threads/AbstractThread.cpp @@ -60,7 +60,7 @@ class XPCOMThreadWrapper : public AbstractThread nsresult rv = mTarget->Dispatch(r, NS_DISPATCH_NORMAL); MOZ_DIAGNOSTIC_ASSERT(aFailureHandling == DontAssertDispatchSuccess || NS_SUCCEEDED(rv)); - unused << rv; + Unused << rv; } virtual bool IsCurrentThreadIn() override diff --git a/xpcom/threads/TaskQueue.h b/xpcom/threads/TaskQueue.h index 29f86366628ff..7d68231c9da0c 100644 --- a/xpcom/threads/TaskQueue.h +++ b/xpcom/threads/TaskQueue.h @@ -46,7 +46,7 @@ class TaskQueue : public AbstractThread { MonitorAutoLock mon(mQueueMonitor); nsresult rv = DispatchLocked(Move(aRunnable), AbortIfFlushing, aFailureHandling, aReason); MOZ_DIAGNOSTIC_ASSERT(aFailureHandling == DontAssertDispatchSuccess || NS_SUCCEEDED(rv)); - unused << rv; + Unused << rv; } // Puts the queue in a shutdown state and returns immediately. The queue will