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 "mozIStorageStatementCallback.h"
|
||||||
#include "mozIStorageVacuumParticipant.h"
|
#include "mozIStorageVacuumParticipant.h"
|
||||||
#include "nsCategoryCache.h"
|
#include "nsCategoryCache.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace storage {
|
namespace storage {
|
||||||
|
|
||||||
class VacuumManager : public nsIObserver
|
class VacuumManager MOZ_FINAL : public nsIObserver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
@ -8,13 +8,14 @@
|
|||||||
#define mozStorageArgValueArray_h
|
#define mozStorageArgValueArray_h
|
||||||
|
|
||||||
#include "mozIStorageValueArray.h"
|
#include "mozIStorageValueArray.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
#include "sqlite3.h"
|
#include "sqlite3.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace storage {
|
namespace storage {
|
||||||
|
|
||||||
class ArgValueArray : public mozIStorageValueArray
|
class ArgValueArray MOZ_FINAL : public mozIStorageValueArray
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ArgValueArray(PRInt32 aArgc, sqlite3_value **aArgv);
|
ArgValueArray(PRInt32 aArgc, sqlite3_value **aArgv);
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#include "mozStorageStatementData.h"
|
#include "mozStorageStatementData.h"
|
||||||
#include "mozIStorageAsyncStatement.h"
|
#include "mozIStorageAsyncStatement.h"
|
||||||
#include "StorageBaseStatementInternal.h"
|
#include "StorageBaseStatementInternal.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
class nsIXPConnectJSObjectHolder;
|
class nsIXPConnectJSObjectHolder;
|
||||||
struct sqlite3_stmt;
|
struct sqlite3_stmt;
|
||||||
@ -26,8 +27,8 @@ namespace storage {
|
|||||||
class AsyncStatementJSHelper;
|
class AsyncStatementJSHelper;
|
||||||
class Connection;
|
class Connection;
|
||||||
|
|
||||||
class AsyncStatement : public mozIStorageAsyncStatement
|
class AsyncStatement MOZ_FINAL : public mozIStorageAsyncStatement
|
||||||
, public StorageBaseStatementInternal
|
, public StorageBaseStatementInternal
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
#include "nsThreadUtils.h"
|
#include "nsThreadUtils.h"
|
||||||
#include "mozilla/Mutex.h"
|
#include "mozilla/Mutex.h"
|
||||||
#include "mozilla/TimeStamp.h"
|
#include "mozilla/TimeStamp.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
#include "SQLiteMutex.h"
|
#include "SQLiteMutex.h"
|
||||||
#include "mozIStoragePendingStatement.h"
|
#include "mozIStoragePendingStatement.h"
|
||||||
@ -28,8 +29,8 @@ class Connection;
|
|||||||
class ResultSet;
|
class ResultSet;
|
||||||
class StatementData;
|
class StatementData;
|
||||||
|
|
||||||
class AsyncExecuteStatements : public nsIRunnable
|
class AsyncExecuteStatements MOZ_FINAL : public nsIRunnable
|
||||||
, public mozIStoragePendingStatement
|
, public mozIStoragePendingStatement
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include "mozIStorageStatementParams.h"
|
#include "mozIStorageStatementParams.h"
|
||||||
#include "nsIXPCScriptable.h"
|
#include "nsIXPCScriptable.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
class mozIStorageAsyncStatement;
|
class mozIStorageAsyncStatement;
|
||||||
|
|
||||||
@ -21,8 +22,8 @@ class AsyncStatement;
|
|||||||
* Since mozIStorageStatementParams is just a tagging interface we do not have
|
* Since mozIStorageStatementParams is just a tagging interface we do not have
|
||||||
* an async variant.
|
* an async variant.
|
||||||
*/
|
*/
|
||||||
class AsyncStatementParams : public mozIStorageStatementParams
|
class AsyncStatementParams MOZ_FINAL : public mozIStorageStatementParams
|
||||||
, public nsIXPCScriptable
|
, public nsIXPCScriptable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
AsyncStatementParams(AsyncStatement *aStatement);
|
AsyncStatementParams(AsyncStatement *aStatement);
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include "nsAutoPtr.h"
|
#include "nsAutoPtr.h"
|
||||||
#include "nsTArray.h"
|
#include "nsTArray.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
#include "mozIStorageBindingParamsArray.h"
|
#include "mozIStorageBindingParamsArray.h"
|
||||||
|
|
||||||
@ -17,7 +18,7 @@ namespace storage {
|
|||||||
|
|
||||||
class StorageBaseStatementInternal;
|
class StorageBaseStatementInternal;
|
||||||
|
|
||||||
class BindingParamsArray : public mozIStorageBindingParamsArray
|
class BindingParamsArray MOZ_FINAL : public mozIStorageBindingParamsArray
|
||||||
{
|
{
|
||||||
typedef nsTArray< nsCOMPtr<mozIStorageBindingParams> > array_type;
|
typedef nsTArray< nsCOMPtr<mozIStorageBindingParams> > array_type;
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
#include "mozilla/Telemetry.h"
|
#include "mozilla/Telemetry.h"
|
||||||
#include "mozilla/Mutex.h"
|
#include "mozilla/Mutex.h"
|
||||||
#include "mozilla/CondVar.h"
|
#include "mozilla/CondVar.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
#include "mozIStorageAggregateFunction.h"
|
#include "mozIStorageAggregateFunction.h"
|
||||||
#include "mozIStorageCompletionCallback.h"
|
#include "mozIStorageCompletionCallback.h"
|
||||||
@ -379,7 +380,7 @@ private:
|
|||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
//// Memory Reporting
|
//// Memory Reporting
|
||||||
|
|
||||||
class StorageMemoryReporter : public nsIMemoryReporter
|
class StorageMemoryReporter MOZ_FINAL : public nsIMemoryReporter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include "mozStorageService.h"
|
#include "mozStorageService.h"
|
||||||
|
|
||||||
#include "nsIMutableArray.h"
|
#include "nsIMutableArray.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
#include "sqlite3.h"
|
#include "sqlite3.h"
|
||||||
|
|
||||||
@ -30,8 +31,8 @@ class nsIThread;
|
|||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace storage {
|
namespace storage {
|
||||||
|
|
||||||
class Connection : public mozIStorageConnection
|
class Connection MOZ_FINAL : public mozIStorageConnection
|
||||||
, public nsIInterfaceRequestor
|
, public nsIInterfaceRequestor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
@ -9,11 +9,12 @@
|
|||||||
|
|
||||||
#include "mozIStorageError.h"
|
#include "mozIStorageError.h"
|
||||||
#include "nsString.h"
|
#include "nsString.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace storage {
|
namespace storage {
|
||||||
|
|
||||||
class Error : public mozIStorageError
|
class Error MOZ_FINAL : public mozIStorageError
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
@ -9,12 +9,13 @@
|
|||||||
|
|
||||||
#include "mozIStorageResultSet.h"
|
#include "mozIStorageResultSet.h"
|
||||||
#include "nsCOMArray.h"
|
#include "nsCOMArray.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
class mozIStorageRow;
|
class mozIStorageRow;
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace storage {
|
namespace storage {
|
||||||
|
|
||||||
class ResultSet : public mozIStorageResultSet
|
class ResultSet MOZ_FINAL : public mozIStorageResultSet
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
@ -10,13 +10,14 @@
|
|||||||
#include "mozIStorageRow.h"
|
#include "mozIStorageRow.h"
|
||||||
#include "nsCOMArray.h"
|
#include "nsCOMArray.h"
|
||||||
#include "nsDataHashtable.h"
|
#include "nsDataHashtable.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
class nsIVariant;
|
class nsIVariant;
|
||||||
struct sqlite3_stmt;
|
struct sqlite3_stmt;
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace storage {
|
namespace storage {
|
||||||
|
|
||||||
class Row : public mozIStorageRow
|
class Row MOZ_FINAL : public mozIStorageRow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include "nsIObserverService.h"
|
#include "nsIObserverService.h"
|
||||||
#include "mozilla/Services.h"
|
#include "mozilla/Services.h"
|
||||||
#include "mozilla/Preferences.h"
|
#include "mozilla/Preferences.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
#include "sqlite3.h"
|
#include "sqlite3.h"
|
||||||
#include "test_quota.h"
|
#include "test_quota.h"
|
||||||
@ -119,7 +120,7 @@ NS_MEMORY_REPORTER_IMPLEMENT(StorageSQLite,
|
|||||||
GetStorageSQLiteMemoryUsed,
|
GetStorageSQLiteMemoryUsed,
|
||||||
"Memory used by SQLite.")
|
"Memory used by SQLite.")
|
||||||
|
|
||||||
class StorageSQLiteMultiReporter : public nsIMemoryMultiReporter
|
class StorageSQLiteMultiReporter MOZ_FINAL : public nsIMemoryMultiReporter
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
Service *mService; // a weakref because Service contains a strongref to this
|
Service *mService; // a weakref because Service contains a strongref to this
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#include "mozIStorageStatement.h"
|
#include "mozIStorageStatement.h"
|
||||||
#include "mozIStorageValueArray.h"
|
#include "mozIStorageValueArray.h"
|
||||||
#include "StorageBaseStatementInternal.h"
|
#include "StorageBaseStatementInternal.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
class nsIXPConnectJSObjectHolder;
|
class nsIXPConnectJSObjectHolder;
|
||||||
struct sqlite3_stmt;
|
struct sqlite3_stmt;
|
||||||
@ -26,9 +27,9 @@ namespace storage {
|
|||||||
class StatementJSHelper;
|
class StatementJSHelper;
|
||||||
class Connection;
|
class Connection;
|
||||||
|
|
||||||
class Statement : public mozIStorageStatement
|
class Statement MOZ_FINAL : public mozIStorageStatement
|
||||||
, public mozIStorageValueArray
|
, public mozIStorageValueArray
|
||||||
, public StorageBaseStatementInternal
|
, public StorageBaseStatementInternal
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include "mozIStorageStatementParams.h"
|
#include "mozIStorageStatementParams.h"
|
||||||
#include "nsIXPCScriptable.h"
|
#include "nsIXPCScriptable.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
class mozIStorageStatement;
|
class mozIStorageStatement;
|
||||||
|
|
||||||
@ -17,8 +18,8 @@ namespace storage {
|
|||||||
|
|
||||||
class Statement;
|
class Statement;
|
||||||
|
|
||||||
class StatementParams : public mozIStorageStatementParams
|
class StatementParams MOZ_FINAL : public mozIStorageStatementParams
|
||||||
, public nsIXPCScriptable
|
, public nsIXPCScriptable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StatementParams(mozIStorageStatement *aStatement);
|
StatementParams(mozIStorageStatement *aStatement);
|
||||||
|
@ -9,14 +9,15 @@
|
|||||||
|
|
||||||
#include "mozIStorageStatementRow.h"
|
#include "mozIStorageStatementRow.h"
|
||||||
#include "nsIXPCScriptable.h"
|
#include "nsIXPCScriptable.h"
|
||||||
|
#include "mozilla/Attributes.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
namespace storage {
|
namespace storage {
|
||||||
|
|
||||||
class Statement;
|
class Statement;
|
||||||
|
|
||||||
class StatementRow : public mozIStorageStatementRow
|
class StatementRow MOZ_FINAL : public mozIStorageStatementRow
|
||||||
, public nsIXPCScriptable
|
, public nsIXPCScriptable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
NS_DECL_ISUPPORTS
|
NS_DECL_ISUPPORTS
|
||||||
|
Loading…
Reference in New Issue
Block a user