mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (storage parts); r=mak
This commit is contained in:
parent
35421a395a
commit
b93060e8bf
@ -12,11 +12,12 @@
|
||||
#include "mozIStorageStatementCallback.h"
|
||||
#include "mozIStorageVacuumParticipant.h"
|
||||
#include "nsCategoryCache.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace storage {
|
||||
|
||||
class VacuumManager : public nsIObserver
|
||||
class VacuumManager MOZ_FINAL : public nsIObserver
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
@ -8,13 +8,14 @@
|
||||
#define mozStorageArgValueArray_h
|
||||
|
||||
#include "mozIStorageValueArray.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#include "sqlite3.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace storage {
|
||||
|
||||
class ArgValueArray : public mozIStorageValueArray
|
||||
class ArgValueArray MOZ_FINAL : public mozIStorageValueArray
|
||||
{
|
||||
public:
|
||||
ArgValueArray(PRInt32 aArgc, sqlite3_value **aArgv);
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include "mozStorageStatementData.h"
|
||||
#include "mozIStorageAsyncStatement.h"
|
||||
#include "StorageBaseStatementInternal.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class nsIXPConnectJSObjectHolder;
|
||||
struct sqlite3_stmt;
|
||||
@ -26,7 +27,7 @@ namespace storage {
|
||||
class AsyncStatementJSHelper;
|
||||
class Connection;
|
||||
|
||||
class AsyncStatement : public mozIStorageAsyncStatement
|
||||
class AsyncStatement MOZ_FINAL : public mozIStorageAsyncStatement
|
||||
, public StorageBaseStatementInternal
|
||||
{
|
||||
public:
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "nsThreadUtils.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
#include "mozilla/TimeStamp.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#include "SQLiteMutex.h"
|
||||
#include "mozIStoragePendingStatement.h"
|
||||
@ -28,7 +29,7 @@ class Connection;
|
||||
class ResultSet;
|
||||
class StatementData;
|
||||
|
||||
class AsyncExecuteStatements : public nsIRunnable
|
||||
class AsyncExecuteStatements MOZ_FINAL : public nsIRunnable
|
||||
, public mozIStoragePendingStatement
|
||||
{
|
||||
public:
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
#include "mozIStorageStatementParams.h"
|
||||
#include "nsIXPCScriptable.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class mozIStorageAsyncStatement;
|
||||
|
||||
@ -21,7 +22,7 @@ class AsyncStatement;
|
||||
* Since mozIStorageStatementParams is just a tagging interface we do not have
|
||||
* an async variant.
|
||||
*/
|
||||
class AsyncStatementParams : public mozIStorageStatementParams
|
||||
class AsyncStatementParams MOZ_FINAL : public mozIStorageStatementParams
|
||||
, public nsIXPCScriptable
|
||||
{
|
||||
public:
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsTArray.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#include "mozIStorageBindingParamsArray.h"
|
||||
|
||||
@ -17,7 +18,7 @@ namespace storage {
|
||||
|
||||
class StorageBaseStatementInternal;
|
||||
|
||||
class BindingParamsArray : public mozIStorageBindingParamsArray
|
||||
class BindingParamsArray MOZ_FINAL : public mozIStorageBindingParamsArray
|
||||
{
|
||||
typedef nsTArray< nsCOMPtr<mozIStorageBindingParams> > array_type;
|
||||
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/Mutex.h"
|
||||
#include "mozilla/CondVar.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#include "mozIStorageAggregateFunction.h"
|
||||
#include "mozIStorageCompletionCallback.h"
|
||||
@ -379,7 +380,7 @@ private:
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//// Memory Reporting
|
||||
|
||||
class StorageMemoryReporter : public nsIMemoryReporter
|
||||
class StorageMemoryReporter MOZ_FINAL : public nsIMemoryReporter
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "mozStorageService.h"
|
||||
|
||||
#include "nsIMutableArray.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#include "sqlite3.h"
|
||||
|
||||
@ -30,7 +31,7 @@ class nsIThread;
|
||||
namespace mozilla {
|
||||
namespace storage {
|
||||
|
||||
class Connection : public mozIStorageConnection
|
||||
class Connection MOZ_FINAL : public mozIStorageConnection
|
||||
, public nsIInterfaceRequestor
|
||||
{
|
||||
public:
|
||||
|
@ -9,11 +9,12 @@
|
||||
|
||||
#include "mozIStorageError.h"
|
||||
#include "nsString.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace storage {
|
||||
|
||||
class Error : public mozIStorageError
|
||||
class Error MOZ_FINAL : public mozIStorageError
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
@ -9,12 +9,13 @@
|
||||
|
||||
#include "mozIStorageResultSet.h"
|
||||
#include "nsCOMArray.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
class mozIStorageRow;
|
||||
|
||||
namespace mozilla {
|
||||
namespace storage {
|
||||
|
||||
class ResultSet : public mozIStorageResultSet
|
||||
class ResultSet MOZ_FINAL : public mozIStorageResultSet
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
@ -10,13 +10,14 @@
|
||||
#include "mozIStorageRow.h"
|
||||
#include "nsCOMArray.h"
|
||||
#include "nsDataHashtable.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
class nsIVariant;
|
||||
struct sqlite3_stmt;
|
||||
|
||||
namespace mozilla {
|
||||
namespace storage {
|
||||
|
||||
class Row : public mozIStorageRow
|
||||
class Row MOZ_FINAL : public mozIStorageRow
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "nsIObserverService.h"
|
||||
#include "mozilla/Services.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
#include "sqlite3.h"
|
||||
#include "test_quota.h"
|
||||
@ -119,7 +120,7 @@ NS_MEMORY_REPORTER_IMPLEMENT(StorageSQLite,
|
||||
GetStorageSQLiteMemoryUsed,
|
||||
"Memory used by SQLite.")
|
||||
|
||||
class StorageSQLiteMultiReporter : public nsIMemoryMultiReporter
|
||||
class StorageSQLiteMultiReporter MOZ_FINAL : public nsIMemoryMultiReporter
|
||||
{
|
||||
private:
|
||||
Service *mService; // a weakref because Service contains a strongref to this
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "mozIStorageStatement.h"
|
||||
#include "mozIStorageValueArray.h"
|
||||
#include "StorageBaseStatementInternal.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class nsIXPConnectJSObjectHolder;
|
||||
struct sqlite3_stmt;
|
||||
@ -26,7 +27,7 @@ namespace storage {
|
||||
class StatementJSHelper;
|
||||
class Connection;
|
||||
|
||||
class Statement : public mozIStorageStatement
|
||||
class Statement MOZ_FINAL : public mozIStorageStatement
|
||||
, public mozIStorageValueArray
|
||||
, public StorageBaseStatementInternal
|
||||
{
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
#include "mozIStorageStatementParams.h"
|
||||
#include "nsIXPCScriptable.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
class mozIStorageStatement;
|
||||
|
||||
@ -17,7 +18,7 @@ namespace storage {
|
||||
|
||||
class Statement;
|
||||
|
||||
class StatementParams : public mozIStorageStatementParams
|
||||
class StatementParams MOZ_FINAL : public mozIStorageStatementParams
|
||||
, public nsIXPCScriptable
|
||||
{
|
||||
public:
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#include "mozIStorageStatementRow.h"
|
||||
#include "nsIXPCScriptable.h"
|
||||
#include "mozilla/Attributes.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace storage {
|
||||
|
||||
class Statement;
|
||||
|
||||
class StatementRow : public mozIStorageStatementRow
|
||||
class StatementRow MOZ_FINAL : public mozIStorageStatementRow
|
||||
, public nsIXPCScriptable
|
||||
{
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user