diff options
| author | James M Snell <jasnell@gmail.com> | 2020-02-05 09:17:22 -0800 |
|---|---|---|
| committer | Anna Henningsen <anna@addaleax.net> | 2020-02-07 23:29:43 +0100 |
| commit | aee3e2bc4ca40538c9f470cbf67fed20de9f6dc0 (patch) | |
| tree | c2c19630ccaf5a7f841a6e2b9f15611e9aea4825 /src/node_url.h | |
| parent | 2db1c8df25db40a909a8ada75ae6da4caa34ed46 (diff) | |
| download | node-new-aee3e2bc4ca40538c9f470cbf67fed20de9f6dc0.tar.gz | |
src: various minor improvements to node_url
Went hunting for possible performance improvements. Didn't find
anything significant but did manage to make a number of style
improvements that bring more in line with style guidelines and
good pratice.
PR-URL: https://github.com/nodejs/node/pull/31651
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_url.h')
| -rw-r--r-- | src/node_url.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_url.h b/src/node_url.h index 963273f988..6439a4a087 100644 --- a/src/node_url.h +++ b/src/node_url.h @@ -120,11 +120,11 @@ class URL { URL(const std::string& input, const std::string& base) : URL(input.c_str(), input.length(), base.c_str(), base.length()) {} - int32_t flags() { + int32_t flags() const { return context_.flags; } - int port() { + int port() const { return context_.port; } |
