Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! src: small modification to NgHeader
  • Loading branch information
jasnell committed May 7, 2020
commit a51e0573c8ac1442247c21dc85ec0651145d6f8c
2 changes: 1 addition & 1 deletion src/node_http_common-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ size_t GetServerMaxHeaderPairs(size_t max_header_pairs) {
}

template <typename allocator_t>
std::string NgHeaderImpl<allocator_t>::ToString() const {
std::string NgHeaderBase<allocator_t>::ToString() const {
std::string ret = name();
ret += " = ";
ret += value();
Expand Down
4 changes: 2 additions & 2 deletions src/node_http_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ class NgRcBufPointer : public MemoryRetainer {
};

template <typename allocator_t>
struct NgHeaderImpl : public MemoryRetainer {
struct NgHeaderBase : public MemoryRetainer {
virtual v8::MaybeLocal<v8::String> GetName(allocator_t* allocator) const = 0;
virtual v8::MaybeLocal<v8::String> GetValue(allocator_t* allocator) const = 0;
virtual std::string name() const = 0;
Expand All @@ -471,7 +471,7 @@ struct NgHeaderImpl : public MemoryRetainer {
// memory tracking, and implementation of static utility functions.
// See Http2HeaderTraits in node_http2.h for an example.
template <typename T>
class NgHeader : public NgHeaderImpl<typename T::allocator_t> {
class NgHeader final : public NgHeaderBase<typename T::allocator_t> {
public:
typedef typename T::rcbufferpointer_t rcbufferpointer_t;
typedef typename T::rcbufferpointer_t::rcbuf_t rcbuf_t;
Expand Down