@@ -231,7 +231,7 @@ class QueryWrap : public AsyncWrap {
231231 : AsyncWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_CARES) {
232232 }
233233
234- virtual ~QueryWrap () {
234+ virtual ~QueryWrap () override {
235235 CHECK_EQ (false , persistent ().IsEmpty ());
236236 persistent ().Reset ();
237237 }
@@ -358,7 +358,7 @@ class QueryAWrap: public QueryWrap {
358358 : QueryWrap(env, req_wrap_obj) {
359359 }
360360
361- int Send (const char * name) {
361+ int Send (const char * name) override {
362362 ares_query (env ()->cares_channel (),
363363 name,
364364 ns_c_in,
@@ -369,7 +369,7 @@ class QueryAWrap: public QueryWrap {
369369 }
370370
371371 protected:
372- void Parse (unsigned char * buf, int len) {
372+ void Parse (unsigned char * buf, int len) override {
373373 HandleScope handle_scope (env ()->isolate ());
374374 Context::Scope context_scope (env ()->context ());
375375
@@ -395,7 +395,7 @@ class QueryAaaaWrap: public QueryWrap {
395395 : QueryWrap(env, req_wrap_obj) {
396396 }
397397
398- int Send (const char * name) {
398+ int Send (const char * name) override {
399399 ares_query (env ()->cares_channel (),
400400 name,
401401 ns_c_in,
@@ -406,7 +406,7 @@ class QueryAaaaWrap: public QueryWrap {
406406 }
407407
408408 protected:
409- void Parse (unsigned char * buf, int len) {
409+ void Parse (unsigned char * buf, int len) override {
410410 HandleScope handle_scope (env ()->isolate ());
411411 Context::Scope context_scope (env ()->context ());
412412
@@ -432,7 +432,7 @@ class QueryCnameWrap: public QueryWrap {
432432 : QueryWrap(env, req_wrap_obj) {
433433 }
434434
435- int Send (const char * name) {
435+ int Send (const char * name) override {
436436 ares_query (env ()->cares_channel (),
437437 name,
438438 ns_c_in,
@@ -443,7 +443,7 @@ class QueryCnameWrap: public QueryWrap {
443443 }
444444
445445 protected:
446- void Parse (unsigned char * buf, int len) {
446+ void Parse (unsigned char * buf, int len) override {
447447 HandleScope handle_scope (env ()->isolate ());
448448 Context::Scope context_scope (env ()->context ());
449449 struct hostent * host;
@@ -471,7 +471,7 @@ class QueryMxWrap: public QueryWrap {
471471 : QueryWrap(env, req_wrap_obj) {
472472 }
473473
474- int Send (const char * name) {
474+ int Send (const char * name) override {
475475 ares_query (env ()->cares_channel (),
476476 name,
477477 ns_c_in,
@@ -482,7 +482,7 @@ class QueryMxWrap: public QueryWrap {
482482 }
483483
484484 protected:
485- void Parse (unsigned char * buf, int len) {
485+ void Parse (unsigned char * buf, int len) override {
486486 HandleScope handle_scope (env ()->isolate ());
487487 Context::Scope context_scope (env ()->context ());
488488
@@ -520,7 +520,7 @@ class QueryNsWrap: public QueryWrap {
520520 : QueryWrap(env, req_wrap_obj) {
521521 }
522522
523- int Send (const char * name) {
523+ int Send (const char * name) override {
524524 ares_query (env ()->cares_channel (),
525525 name,
526526 ns_c_in,
@@ -531,7 +531,7 @@ class QueryNsWrap: public QueryWrap {
531531 }
532532
533533 protected:
534- void Parse (unsigned char * buf, int len) {
534+ void Parse (unsigned char * buf, int len) override {
535535 HandleScope handle_scope (env ()->isolate ());
536536 Context::Scope context_scope (env ()->context ());
537537 struct hostent * host;
@@ -556,7 +556,7 @@ class QueryTxtWrap: public QueryWrap {
556556 : QueryWrap(env, req_wrap_obj) {
557557 }
558558
559- int Send (const char * name) {
559+ int Send (const char * name) override {
560560 ares_query (env ()->cares_channel (),
561561 name,
562562 ns_c_in,
@@ -567,7 +567,7 @@ class QueryTxtWrap: public QueryWrap {
567567 }
568568
569569 protected:
570- void Parse (unsigned char * buf, int len) {
570+ void Parse (unsigned char * buf, int len) override {
571571 HandleScope handle_scope (env ()->isolate ());
572572 Context::Scope context_scope (env ()->context ());
573573 struct ares_txt_reply * txt_out;
@@ -610,7 +610,7 @@ class QuerySrvWrap: public QueryWrap {
610610 : QueryWrap(env, req_wrap_obj) {
611611 }
612612
613- int Send (const char * name) {
613+ int Send (const char * name) override {
614614 ares_query (env ()->cares_channel (),
615615 name,
616616 ns_c_in,
@@ -621,7 +621,7 @@ class QuerySrvWrap: public QueryWrap {
621621 }
622622
623623 protected:
624- void Parse (unsigned char * buf, int len) {
624+ void Parse (unsigned char * buf, int len) override {
625625 HandleScope handle_scope (env ()->isolate ());
626626 Context::Scope context_scope (env ()->context ());
627627
@@ -664,7 +664,7 @@ class QueryNaptrWrap: public QueryWrap {
664664 : QueryWrap(env, req_wrap_obj) {
665665 }
666666
667- int Send (const char * name) {
667+ int Send (const char * name) override {
668668 ares_query (env ()->cares_channel (),
669669 name,
670670 ns_c_in,
@@ -675,7 +675,7 @@ class QueryNaptrWrap: public QueryWrap {
675675 }
676676
677677 protected:
678- void Parse (unsigned char * buf, int len) {
678+ void Parse (unsigned char * buf, int len) override {
679679 HandleScope handle_scope (env ()->isolate ());
680680 Context::Scope context_scope (env ()->context ());
681681
@@ -726,7 +726,7 @@ class QuerySoaWrap: public QueryWrap {
726726 : QueryWrap(env, req_wrap_obj) {
727727 }
728728
729- int Send (const char * name) {
729+ int Send (const char * name) override {
730730 ares_query (env ()->cares_channel (),
731731 name,
732732 ns_c_in,
@@ -737,7 +737,7 @@ class QuerySoaWrap: public QueryWrap {
737737 }
738738
739739 protected:
740- void Parse (unsigned char * buf, int len) {
740+ void Parse (unsigned char * buf, int len) override {
741741 HandleScope handle_scope (env ()->isolate ());
742742 Context::Scope context_scope (env ()->context ());
743743
@@ -779,7 +779,7 @@ class GetHostByAddrWrap: public QueryWrap {
779779 : QueryWrap(env, req_wrap_obj) {
780780 }
781781
782- int Send (const char * name) {
782+ int Send (const char * name) override {
783783 int length, family;
784784 char address_buffer[sizeof (struct in6_addr )];
785785
@@ -803,7 +803,7 @@ class GetHostByAddrWrap: public QueryWrap {
803803 }
804804
805805 protected:
806- void Parse (struct hostent * host) {
806+ void Parse (struct hostent * host) override {
807807 HandleScope handle_scope (env ()->isolate ());
808808 Context::Scope context_scope (env ()->context ());
809809 this ->CallOnComplete (HostentToNames (env (), host));
@@ -817,7 +817,7 @@ class GetHostByNameWrap: public QueryWrap {
817817 : QueryWrap(env, req_wrap_obj) {
818818 }
819819
820- int Send (const char * name, int family) {
820+ int Send (const char * name, int family) override {
821821 ares_gethostbyname (env ()->cares_channel (),
822822 name,
823823 family,
@@ -827,7 +827,7 @@ class GetHostByNameWrap: public QueryWrap {
827827 }
828828
829829 protected:
830- void Parse (struct hostent * host) {
830+ void Parse (struct hostent * host) override {
831831 HandleScope scope (env ()->isolate ());
832832
833833 Local<Array> addresses = HostentToAddresses (env (), host);
0 commit comments