Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2020-02-05 20:17:22 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2020-02-17 23:12:38 +0300
commitaf612bcc2155c05c35c95f51affe067b03ac3e9e (patch)
treee45ad6d19294aed6b6fe88e727274f881a7156fc /src/node_url.h
parent4b0085c7e39b3a244d82b1896f614eead6211d03 (diff)
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_url.h b/src/node_url.h
index 963273f988c..6439a4a087b 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;
}