[gjs/mozjs78: 24/38] js: Fix up declarations of mozilla::DefaultHasher
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs78: 24/38] js: Fix up declarations of mozilla::DefaultHasher
- Date: Tue, 11 Aug 2020 19:54:34 +0000 (UTC)
commit 21948f12687207ee36ba6bbe887dee73e34460f0
Author: Evan Welsh <noreply evanwelsh com>
Date: Sat Jul 4 22:11:07 2020 -0500
js: Fix up declarations of mozilla::DefaultHasher
This now has an extra template parameter, so the forward declaration
would need to be changed. However, IWYU now thinks that we need to
include the header file instead of having a forward declaration anyway,
so just remove them.
See: GNOME/gjs#329
gi/boxed.h | 5 +----
gjs/context-private.h | 4 ----
2 files changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/gi/boxed.h b/gi/boxed.h
index a683d8d5..3cd9727d 100644
--- a/gi/boxed.h
+++ b/gi/boxed.h
@@ -36,6 +36,7 @@
#include <js/Id.h>
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
+#include <mozilla/HashTable.h> // for DefaultHasher
#include "gi/wrapperutils.h"
#include "gjs/jsapi-util.h"
@@ -51,10 +52,6 @@ class CallArgs;
namespace js {
class SystemAllocPolicy;
}
-namespace mozilla {
-template <class Key>
-struct DefaultHasher;
-}
/* To conserve memory, we have two different kinds of private data for GBoxed
* JS wrappers: BoxedInstance, and BoxedPrototype. Both inherit from BoxedBase
diff --git a/gjs/context-private.h b/gjs/context-private.h
index ef8f28b6..264cfc71 100644
--- a/gjs/context-private.h
+++ b/gjs/context-private.h
@@ -49,10 +49,6 @@
#include "gjs/macros.h"
#include "gjs/profiler.h"
-namespace mozilla {
-template <class Key>
-struct DefaultHasher;
-}
namespace js {
class SystemAllocPolicy;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]