Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2019-03-20 15:55:22 +0300
committerRefael Ackermann <refack@gmail.com>2019-03-23 01:14:37 +0300
commit86e02966318531ddf7279c88821233c64aa7bf4c (patch)
tree3237b474c34c26daf7401b64b52bfa25e2540ae7 /src/node_report.cc
parent7d201c4e700ff94f17dab9185c03c44597976e8c (diff)
src: apply clang-tidy performance-faster-string-find
PR-URL: https://github.com/nodejs/node/pull/26812 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_report.cc')
-rw-r--r--src/node_report.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_report.cc b/src/node_report.cc
index 00d6a2454c6..f9cf9211434 100644
--- a/src/node_report.cc
+++ b/src/node_report.cc
@@ -507,7 +507,7 @@ static void PrintSystemInformation(JSONWriter* writer) {
WideCharToMultiByte(
CP_UTF8, 0, lpszVariable, -1, str, size, nullptr, nullptr);
std::string env(str);
- int sep = env.rfind("=");
+ int sep = env.rfind('=');
std::string key = env.substr(0, sep);
std::string value = env.substr(sep + 1);
writer->json_keyvalue(key, value);