File tree 7 files changed +9
-9
lines changed
7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class TraceEventScope {
65
65
};
66
66
67
67
int const Environment::kNodeContextTag = 0x6e6f64 ;
68
- void * Environment::kNodeContextTagPtr = const_cast <void *>(
68
+ void * const Environment::kNodeContextTagPtr = const_cast <void *>(
69
69
static_cast <const void *>(&Environment::kNodeContextTag ));
70
70
71
71
IsolateData::IsolateData (Isolate* isolate,
Original file line number Diff line number Diff line change @@ -971,7 +971,7 @@ class Environment {
971
971
uint64_t thread_id_ = 0 ;
972
972
std::unordered_set<worker::Worker*> sub_worker_contexts_;
973
973
974
- static void * kNodeContextTagPtr ;
974
+ static void * const kNodeContextTagPtr ;
975
975
static int const kNodeContextTag ;
976
976
977
977
#if HAVE_INSPECTOR
Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ using v8::Value;
81
81
#endif
82
82
83
83
#ifdef __POSIX__
84
- const char * kPathSeparator = " / " ;
84
+ constexpr char kPathSeparator = ' / ' ;
85
85
#else
86
- const char * kPathSeparator = " \\ /" ;
86
+ const char * const kPathSeparator = " \\ /" ;
87
87
#endif
88
88
89
89
#define GET_OFFSET (a ) ((a)->IsNumber () ? (a).As<Integer>()->Value() : -1)
Original file line number Diff line number Diff line change 4
4
5
5
namespace node {
6
6
7
- const char * llhttp_version =
7
+ const char * const llhttp_version =
8
8
NODE_STRINGIFY (LLHTTP_VERSION_MAJOR)
9
9
" ."
10
10
NODE_STRINGIFY (LLHTTP_VERSION_MINOR)
Original file line number Diff line number Diff line change 6
6
7
7
namespace node {
8
8
9
- const char * http_parser_version =
9
+ const char * const http_parser_version =
10
10
NODE_STRINGIFY (HTTP_PARSER_VERSION_MAJOR)
11
11
" ."
12
12
NODE_STRINGIFY (HTTP_PARSER_VERSION_MINOR)
Original file line number Diff line number Diff line change @@ -697,8 +697,8 @@ static inline const char* errno_string(int errorno) {
697
697
698
698
extern double prog_start_time;
699
699
700
- extern const char * llhttp_version;
701
- extern const char * http_parser_version;
700
+ extern const char * const llhttp_version;
701
+ extern const char * const http_parser_version;
702
702
703
703
void Abort (const v8::FunctionCallbackInfo<v8::Value>& args);
704
704
void Chdir (const v8::FunctionCallbackInfo<v8::Value>& args);
Original file line number Diff line number Diff line change @@ -60,6 +60,6 @@ int GenDebugSymbols() {
60
60
return 1 ;
61
61
}
62
62
63
- int debug_symbols_generated = GenDebugSymbols();
63
+ const int debug_symbols_generated = GenDebugSymbols();
64
64
65
65
} // namespace node
You can’t perform that action at this time.
0 commit comments