Skip to content

Commit

Permalink
src: constify PerformanceEntry data members
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#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 addaleax committed Sep 23, 2017
1 parent 7fd4bcb commit c92880e
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 c92880e

Please sign in to comment.