diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2017-09-18 17:38:59 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-09-22 01:19:01 +0300 |
commit | 78339e25111cee826debf0e864c7f8d894f3288c (patch) | |
tree | 5bbd697647b04417b662bb503a8039ff4516df45 /src/node_perf.h | |
parent | 3869dd2a137f1989fdbee86eb5b7de4c991a7f68 (diff) |
src: constify PerformanceEntry data members
PR-URL: https://github.com/nodejs/node/pull/15458
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_perf.h')
-rw-r--r-- | src/node_perf.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/node_perf.h b/src/node_perf.h index fe5d2d99681..3d9bb144ff2 100644 --- a/src/node_perf.h +++ b/src/node_perf.h @@ -94,12 +94,12 @@ class PerformanceEntry : public BaseObject { } private: - Environment* env_; - std::string name_; - std::string type_; - uint64_t startTime_; - uint64_t endTime_; - int data_; + Environment* const env_; + const std::string name_; + const std::string type_; + const uint64_t startTime_; + const uint64_t endTime_; + const int data_; }; static void NotifyObservers(Environment* env, PerformanceEntry* entry); @@ -160,10 +160,10 @@ class PerformanceEntry : public BaseObject { } private: - std::string name_; - std::string type_; - uint64_t startTime_; - uint64_t endTime_; + const std::string name_; + const std::string type_; + const uint64_t startTime_; + const uint64_t endTime_; }; enum PerformanceGCKind { |