зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1073081 - Fix -Wdelete-non-virtual-dtor warnings by marking some classes as MOZ_FINAL. r=ehsan
--HG-- extra : source : 7a909c534cf723b252ea5b0a225a6656399b5b2e
This commit is contained in:
Родитель
7a433f6905
Коммит
7b85bd5de5
|
@ -151,7 +151,7 @@ BluetoothService::ToggleBtAck::Run()
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
class BluetoothService::StartupTask : public nsISettingsServiceCallback
|
||||
class BluetoothService::StartupTask MOZ_FINAL : public nsISettingsServiceCallback
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
|
|
@ -71,7 +71,7 @@ IsSupportedChld(const int aChld) {
|
|||
return (aChld >= 0 && aChld <= 3);
|
||||
}
|
||||
|
||||
class BluetoothHfpManager::GetVolumeTask : public nsISettingsServiceCallback
|
||||
class BluetoothHfpManager::GetVolumeTask MOZ_FINAL : public nsISettingsServiceCallback
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
|
|
@ -338,7 +338,7 @@ PreallocatedProcessManagerImpl::OnNuwaReady()
|
|||
AutoJSContext cx;
|
||||
nsCOMPtr<nsIMessageBroadcaster> ppmm =
|
||||
do_GetService("@mozilla.org/parentprocessmessagemanager;1");
|
||||
nsresult rv = ppmm->BroadcastAsyncMessage(
|
||||
mozilla::unused << ppmm->BroadcastAsyncMessage(
|
||||
NS_LITERAL_STRING("TEST-ONLY:nuwa-ready"),
|
||||
JS::NullHandleValue, JS::NullHandleValue, cx, 1);
|
||||
}
|
||||
|
|
|
@ -38,8 +38,8 @@ namespace dom {
|
|||
namespace gonk {
|
||||
class RecoverTask;
|
||||
class AudioChannelVolInitCallback;
|
||||
class AudioManager : public nsIAudioManager
|
||||
, public nsIObserver
|
||||
class AudioManager MOZ_FINAL : public nsIAudioManager
|
||||
, public nsIObserver
|
||||
{
|
||||
public:
|
||||
static already_AddRefed<AudioManager> GetInstance();
|
||||
|
|
|
@ -36,9 +36,9 @@ namespace ipc {
|
|||
namespace dom {
|
||||
namespace gonk {
|
||||
|
||||
class SystemWorkerManager : public nsIObserver,
|
||||
public nsIInterfaceRequestor,
|
||||
public nsISystemWorkerManager
|
||||
class SystemWorkerManager MOZ_FINAL : public nsIObserver,
|
||||
public nsIInterfaceRequestor,
|
||||
public nsISystemWorkerManager
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
namespace mozilla {
|
||||
namespace system {
|
||||
|
||||
class nsVolumeStat : public nsIVolumeStat
|
||||
class nsVolumeStat MOZ_FINAL : public nsIVolumeStat
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
|
|
@ -238,7 +238,7 @@ namespace {
|
|||
* This runnable runs for the lifetime of the program, once started. It's
|
||||
* responsible for "playing" vibration patterns.
|
||||
*/
|
||||
class VibratorRunnable
|
||||
class VibratorRunnable MOZ_FINAL
|
||||
: public nsIRunnable
|
||||
, public nsIObserver
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace mozilla {
|
|||
namespace net {
|
||||
|
||||
|
||||
class RtspHandler : public nsIProtocolHandler
|
||||
class RtspHandler MOZ_FINAL : public nsIProtocolHandler
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
class RtspController : public nsIStreamingProtocolController
|
||||
, public nsIStreamingProtocolListener
|
||||
class RtspController MOZ_FINAL : public nsIStreamingProtocolController
|
||||
, public nsIStreamingProtocolListener
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
class RtspMetaData : public nsIStreamingProtocolMetaData
|
||||
class RtspMetaData MOZ_FINAL : public nsIStreamingProtocolMetaData
|
||||
{
|
||||
public:
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
|
Загрузка…
Ссылка в новой задаче