summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpi1024e <doremylover123@gmail.com>2019-08-09 11:15:22 -0400
committerRich Trott <rtrott@gmail.com>2019-08-11 22:58:42 -0700
commit15b2d1331082c66adf608bb4de9987aa47a25358 (patch)
tree008ae4e1b95125b02d4cd5eb022ce371b105cd4c /src
parent7635b7cc27305dbe11112771d6f7c52b3c401db8 (diff)
downloadandroid-node-v8-15b2d1331082c66adf608bb4de9987aa47a25358.tar.gz
android-node-v8-15b2d1331082c66adf608bb4de9987aa47a25358.tar.bz2
android-node-v8-15b2d1331082c66adf608bb4de9987aa47a25358.zip
src: organize imports in inspector_profiler.cc
In the other .cc files in the project, includes are in alphabetical order, with local files first, and libraries after. However, inspector_profiler.cc has a library declared in the middle of the import order, and v8 is the second to last being imported, instead of the last. So I reordered the imports and testing showed no side effects; everything passed. PR-URL: https://github.com/nodejs/node/pull/29073 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/inspector_profiler.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inspector_profiler.cc b/src/inspector_profiler.cc
index 122118324f..e5e01dc3c9 100644
--- a/src/inspector_profiler.cc
+++ b/src/inspector_profiler.cc
@@ -1,13 +1,14 @@
#include "inspector_profiler.h"
-#include <sstream>
#include "base_object-inl.h"
#include "debug_utils.h"
#include "diagnosticfilename-inl.h"
#include "memory_tracker-inl.h"
#include "node_file.h"
#include "node_internals.h"
-#include "v8-inspector.h"
#include "util-inl.h"
+#include "v8-inspector.h"
+
+#include <sstream>
namespace node {
namespace profiler {
@@ -323,7 +324,7 @@ void EndStartedProfilers(Environment* env) {
std::string GetCwd(Environment* env) {
char cwd[PATH_MAX_BYTES];
size_t size = PATH_MAX_BYTES;
- int err = uv_cwd(cwd, &size);
+ const int err = uv_cwd(cwd, &size);
if (err == 0) {
CHECK_GT(size, 0);