summaryrefslogtreecommitdiff
path: root/dom/fetch
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2019-03-13 20:04:13 +0200
committerJustOff <Off.Just.Off@gmail.com>2019-03-13 20:04:13 +0200
commitb586a191ec085d2c6c5c4fdfb1b12102fb5de4c4 (patch)
tree8271d2b8f78dd3518f23fb93fc971489fe14e67b /dom/fetch
parent5890367d30702ff8f2fbb6fc28e6ecdd6d5b2b84 (diff)
downloaduxp-b586a191ec085d2c6c5c4fdfb1b12102fb5de4c4.tar.gz
Rename the MozMap C++ type to "record" and give it a template parameter for the key type
Diffstat (limited to 'dom/fetch')
-rw-r--r--dom/fetch/Headers.h2
-rw-r--r--dom/fetch/InternalHeaders.cpp2
-rw-r--r--dom/fetch/InternalHeaders.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/dom/fetch/Headers.h b/dom/fetch/Headers.h
index 38b0fc68f1..1dd92f779f 100644
--- a/dom/fetch/Headers.h
+++ b/dom/fetch/Headers.h
@@ -20,7 +20,7 @@ class ErrorResult;
namespace dom {
-template<typename T> class MozMap;
+template<typename K, typename V> class Record;
class HeadersOrByteStringSequenceSequenceOrByteStringByteStringRecord;
class OwningHeadersOrByteStringSequenceSequenceOrByteStringByteStringRecord;
diff --git a/dom/fetch/InternalHeaders.cpp b/dom/fetch/InternalHeaders.cpp
index 83a6867851..7bf5703dc4 100644
--- a/dom/fetch/InternalHeaders.cpp
+++ b/dom/fetch/InternalHeaders.cpp
@@ -314,7 +314,7 @@ InternalHeaders::Fill(const Sequence<Sequence<nsCString>>& aInit, ErrorResult& a
}
void
-InternalHeaders::Fill(const MozMap<nsCString>& aInit, ErrorResult& aRv)
+InternalHeaders::Fill(const Record<nsCString, nsCString>& aInit, ErrorResult& aRv)
{
for (auto& entry : aInit.Entries()) {
Append(NS_ConvertUTF16toUTF8(entry.mKey), entry.mValue, aRv);
diff --git a/dom/fetch/InternalHeaders.h b/dom/fetch/InternalHeaders.h
index 9a6d6dae7d..98046f0efe 100644
--- a/dom/fetch/InternalHeaders.h
+++ b/dom/fetch/InternalHeaders.h
@@ -20,7 +20,7 @@ class ErrorResult;
namespace dom {
-template<typename T> class MozMap;
+template<typename K, typename V> class Record;
class HeadersEntry;
class InternalHeaders final
@@ -113,7 +113,7 @@ public:
void Fill(const InternalHeaders& aInit, ErrorResult& aRv);
void Fill(const Sequence<Sequence<nsCString>>& aInit, ErrorResult& aRv);
- void Fill(const MozMap<nsCString>& aInit, ErrorResult& aRv);
+ void Fill(const Record<nsCString, nsCString>& aInit, ErrorResult& aRv);
bool HasOnlySimpleHeaders() const;