File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class TraceEventScope {
6565};
6666
6767int  const  Environment::kNodeContextTag  = 0x6e6f64 ;
68- void * Environment::kNodeContextTagPtr  = const_cast <void *>(
68+ void * const   Environment::kNodeContextTagPtr  = const_cast <void *>(
6969    static_cast <const  void *>(&Environment::kNodeContextTag ));
7070
7171IsolateData::IsolateData (Isolate* isolate,
Original file line number Diff line number Diff line change @@ -972,7 +972,7 @@ class Environment {
972972  uint64_t  thread_id_ = 0 ;
973973  std::unordered_set<worker::Worker*> sub_worker_contexts_;
974974
975-   static  void * kNodeContextTagPtr ;
975+   static  void * const   kNodeContextTagPtr ;
976976  static  int  const  kNodeContextTag ;
977977
978978#if  HAVE_INSPECTOR
Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ using v8::Value;
8181#endif 
8282
8383#ifdef  __POSIX__
84- const  char *  kPathSeparator  = " / "  ;
84+ constexpr  char  kPathSeparator  = ' / '  ;
8585#else 
86- const  char *  kPathSeparator  = " \\ /"  ;
86+ constexpr  char  kPathSeparator  = ' \\ /'  ;
8787#endif 
8888
8989#define  GET_OFFSET (a ) ((a)->IsNumber () ? (a).As<Integer>()->Value() : -1)
Original file line number Diff line number Diff line change 44
55namespace  node  {
66
7- const  char * llhttp_version =
7+ const  char * const   llhttp_version =
88    NODE_STRINGIFY (LLHTTP_VERSION_MAJOR)
99    " ." 
1010    NODE_STRINGIFY (LLHTTP_VERSION_MINOR)
Original file line number Diff line number Diff line change 66
77namespace  node  {
88
9- const  char * http_parser_version =
9+ const  char * const   http_parser_version =
1010  NODE_STRINGIFY (HTTP_PARSER_VERSION_MAJOR)
1111  " ." 
1212  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) {
697697
698698extern  double  prog_start_time;
699699
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;
702702
703703void  Abort (const  v8::FunctionCallbackInfo<v8::Value>& args);
704704void  Chdir (const  v8::FunctionCallbackInfo<v8::Value>& args);
Original file line number Diff line number Diff line change @@ -60,6 +60,6 @@ int GenDebugSymbols() {
6060  return  1 ;
6161}
6262
63- int  debug_symbols_generated = GenDebugSymbols();
63+ const   int  debug_symbols_generated = GenDebugSymbols();
6464
6565}  //  namespace node
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments