@@ -231,7 +231,7 @@ class QueryWrap : public AsyncWrap {
231
231
: AsyncWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_CARES) {
232
232
}
233
233
234
- virtual ~QueryWrap () {
234
+ virtual ~QueryWrap () override {
235
235
CHECK_EQ (false , persistent ().IsEmpty ());
236
236
persistent ().Reset ();
237
237
}
@@ -358,7 +358,7 @@ class QueryAWrap: public QueryWrap {
358
358
: QueryWrap(env, req_wrap_obj) {
359
359
}
360
360
361
- int Send (const char * name) {
361
+ int Send (const char * name) override {
362
362
ares_query (env ()->cares_channel (),
363
363
name,
364
364
ns_c_in,
@@ -369,7 +369,7 @@ class QueryAWrap: public QueryWrap {
369
369
}
370
370
371
371
protected:
372
- void Parse (unsigned char * buf, int len) {
372
+ void Parse (unsigned char * buf, int len) override {
373
373
HandleScope handle_scope (env ()->isolate ());
374
374
Context::Scope context_scope (env ()->context ());
375
375
@@ -395,7 +395,7 @@ class QueryAaaaWrap: public QueryWrap {
395
395
: QueryWrap(env, req_wrap_obj) {
396
396
}
397
397
398
- int Send (const char * name) {
398
+ int Send (const char * name) override {
399
399
ares_query (env ()->cares_channel (),
400
400
name,
401
401
ns_c_in,
@@ -406,7 +406,7 @@ class QueryAaaaWrap: public QueryWrap {
406
406
}
407
407
408
408
protected:
409
- void Parse (unsigned char * buf, int len) {
409
+ void Parse (unsigned char * buf, int len) override {
410
410
HandleScope handle_scope (env ()->isolate ());
411
411
Context::Scope context_scope (env ()->context ());
412
412
@@ -432,7 +432,7 @@ class QueryCnameWrap: public QueryWrap {
432
432
: QueryWrap(env, req_wrap_obj) {
433
433
}
434
434
435
- int Send (const char * name) {
435
+ int Send (const char * name) override {
436
436
ares_query (env ()->cares_channel (),
437
437
name,
438
438
ns_c_in,
@@ -443,7 +443,7 @@ class QueryCnameWrap: public QueryWrap {
443
443
}
444
444
445
445
protected:
446
- void Parse (unsigned char * buf, int len) {
446
+ void Parse (unsigned char * buf, int len) override {
447
447
HandleScope handle_scope (env ()->isolate ());
448
448
Context::Scope context_scope (env ()->context ());
449
449
struct hostent * host;
@@ -471,7 +471,7 @@ class QueryMxWrap: public QueryWrap {
471
471
: QueryWrap(env, req_wrap_obj) {
472
472
}
473
473
474
- int Send (const char * name) {
474
+ int Send (const char * name) override {
475
475
ares_query (env ()->cares_channel (),
476
476
name,
477
477
ns_c_in,
@@ -482,7 +482,7 @@ class QueryMxWrap: public QueryWrap {
482
482
}
483
483
484
484
protected:
485
- void Parse (unsigned char * buf, int len) {
485
+ void Parse (unsigned char * buf, int len) override {
486
486
HandleScope handle_scope (env ()->isolate ());
487
487
Context::Scope context_scope (env ()->context ());
488
488
@@ -520,7 +520,7 @@ class QueryNsWrap: public QueryWrap {
520
520
: QueryWrap(env, req_wrap_obj) {
521
521
}
522
522
523
- int Send (const char * name) {
523
+ int Send (const char * name) override {
524
524
ares_query (env ()->cares_channel (),
525
525
name,
526
526
ns_c_in,
@@ -531,7 +531,7 @@ class QueryNsWrap: public QueryWrap {
531
531
}
532
532
533
533
protected:
534
- void Parse (unsigned char * buf, int len) {
534
+ void Parse (unsigned char * buf, int len) override {
535
535
HandleScope handle_scope (env ()->isolate ());
536
536
Context::Scope context_scope (env ()->context ());
537
537
struct hostent * host;
@@ -556,7 +556,7 @@ class QueryTxtWrap: public QueryWrap {
556
556
: QueryWrap(env, req_wrap_obj) {
557
557
}
558
558
559
- int Send (const char * name) {
559
+ int Send (const char * name) override {
560
560
ares_query (env ()->cares_channel (),
561
561
name,
562
562
ns_c_in,
@@ -567,7 +567,7 @@ class QueryTxtWrap: public QueryWrap {
567
567
}
568
568
569
569
protected:
570
- void Parse (unsigned char * buf, int len) {
570
+ void Parse (unsigned char * buf, int len) override {
571
571
HandleScope handle_scope (env ()->isolate ());
572
572
Context::Scope context_scope (env ()->context ());
573
573
struct ares_txt_reply * txt_out;
@@ -610,7 +610,7 @@ class QuerySrvWrap: public QueryWrap {
610
610
: QueryWrap(env, req_wrap_obj) {
611
611
}
612
612
613
- int Send (const char * name) {
613
+ int Send (const char * name) override {
614
614
ares_query (env ()->cares_channel (),
615
615
name,
616
616
ns_c_in,
@@ -621,7 +621,7 @@ class QuerySrvWrap: public QueryWrap {
621
621
}
622
622
623
623
protected:
624
- void Parse (unsigned char * buf, int len) {
624
+ void Parse (unsigned char * buf, int len) override {
625
625
HandleScope handle_scope (env ()->isolate ());
626
626
Context::Scope context_scope (env ()->context ());
627
627
@@ -664,7 +664,7 @@ class QueryNaptrWrap: public QueryWrap {
664
664
: QueryWrap(env, req_wrap_obj) {
665
665
}
666
666
667
- int Send (const char * name) {
667
+ int Send (const char * name) override {
668
668
ares_query (env ()->cares_channel (),
669
669
name,
670
670
ns_c_in,
@@ -675,7 +675,7 @@ class QueryNaptrWrap: public QueryWrap {
675
675
}
676
676
677
677
protected:
678
- void Parse (unsigned char * buf, int len) {
678
+ void Parse (unsigned char * buf, int len) override {
679
679
HandleScope handle_scope (env ()->isolate ());
680
680
Context::Scope context_scope (env ()->context ());
681
681
@@ -726,7 +726,7 @@ class QuerySoaWrap: public QueryWrap {
726
726
: QueryWrap(env, req_wrap_obj) {
727
727
}
728
728
729
- int Send (const char * name) {
729
+ int Send (const char * name) override {
730
730
ares_query (env ()->cares_channel (),
731
731
name,
732
732
ns_c_in,
@@ -737,7 +737,7 @@ class QuerySoaWrap: public QueryWrap {
737
737
}
738
738
739
739
protected:
740
- void Parse (unsigned char * buf, int len) {
740
+ void Parse (unsigned char * buf, int len) override {
741
741
HandleScope handle_scope (env ()->isolate ());
742
742
Context::Scope context_scope (env ()->context ());
743
743
@@ -779,7 +779,7 @@ class GetHostByAddrWrap: public QueryWrap {
779
779
: QueryWrap(env, req_wrap_obj) {
780
780
}
781
781
782
- int Send (const char * name) {
782
+ int Send (const char * name) override {
783
783
int length, family;
784
784
char address_buffer[sizeof (struct in6_addr )];
785
785
@@ -803,7 +803,7 @@ class GetHostByAddrWrap: public QueryWrap {
803
803
}
804
804
805
805
protected:
806
- void Parse (struct hostent * host) {
806
+ void Parse (struct hostent * host) override {
807
807
HandleScope handle_scope (env ()->isolate ());
808
808
Context::Scope context_scope (env ()->context ());
809
809
this ->CallOnComplete (HostentToNames (env (), host));
@@ -817,7 +817,7 @@ class GetHostByNameWrap: public QueryWrap {
817
817
: QueryWrap(env, req_wrap_obj) {
818
818
}
819
819
820
- int Send (const char * name, int family) {
820
+ int Send (const char * name, int family) override {
821
821
ares_gethostbyname (env ()->cares_channel (),
822
822
name,
823
823
family,
@@ -827,7 +827,7 @@ class GetHostByNameWrap: public QueryWrap {
827
827
}
828
828
829
829
protected:
830
- void Parse (struct hostent * host) {
830
+ void Parse (struct hostent * host) override {
831
831
HandleScope scope (env ()->isolate ());
832
832
833
833
Local<Array> addresses = HostentToAddresses (env (), host);
0 commit comments