From a256b73ccfd0a5e0f63690827146039288a48e03 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Thu, 12 Jun 2014 11:31:36 -0400 Subject: [PATCH] Bug 1024465 - Define an out of line destructor for DataStore so that we can forward delcare DataStoreImpl in DataStore.h; r=bzbarsky This is required because the destructor for the nsRefPtr member requires the full definition of the type. --- dom/datastore/DataStore.cpp | 4 ++++ dom/datastore/DataStore.h | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dom/datastore/DataStore.cpp b/dom/datastore/DataStore.cpp index 9e5962a094b1..9467d3e91b4e 100644 --- a/dom/datastore/DataStore.cpp +++ b/dom/datastore/DataStore.cpp @@ -29,6 +29,10 @@ DataStore::DataStore(nsPIDOMWindow* aWindow) { } +DataStore::~DataStore() +{ +} + already_AddRefed DataStore::Constructor(GlobalObject& aGlobal, ErrorResult& aRv) { diff --git a/dom/datastore/DataStore.h b/dom/datastore/DataStore.h index 2326ab10ec03..990b934ff852 100644 --- a/dom/datastore/DataStore.h +++ b/dom/datastore/DataStore.h @@ -27,6 +27,7 @@ public: DOMEventTargetHelper) explicit DataStore(nsPIDOMWindow* aWindow); + ~DataStore(); // WebIDL (internal functions) @@ -89,4 +90,4 @@ private: } //namespace dom } //namespace mozilla -#endif \ No newline at end of file +#endif