Skip to content

Commit

Permalink
src: constify PerformanceEntry data members
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
bnoordhuis authored and BridgeAR committed Sep 21, 2017
1 parent 3869dd2 commit 78339e2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/node_perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 78339e2

Please sign in to comment.