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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
bnoordhuis authored and MylesBorins committed Oct 3, 2017
1 parent e72761a commit fd1a892
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 @@ -91,12 +91,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 @@ -157,10 +157,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 fd1a892

Please sign in to comment.