diff options
Diffstat (limited to 'src/node_perf.h')
-rw-r--r-- | src/node_perf.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/node_perf.h b/src/node_perf.h index ca4374ebc5..fe5d2d9968 100644 --- a/src/node_perf.h +++ b/src/node_perf.h @@ -73,11 +73,11 @@ class PerformanceEntry : public BaseObject { return env_; } - std::string name() const { + const std::string& name() const { return name_; } - std::string type() const { + const std::string& type() const { return type_; } @@ -135,11 +135,11 @@ class PerformanceEntry : public BaseObject { ~PerformanceEntry() {} - std::string name() const { + const std::string& name() const { return name_; } - std::string type() const { + const std::string& type() const { return type_; } |