File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -369,11 +369,11 @@ class QueryWrap : public AsyncWrap {
369369 // Subclasses should implement the appropriate Parse method.
370370 virtual void Parse (unsigned char * buf, int len) {
371371 UNREACHABLE ();
372- };
372+ }
373373
374374 virtual void Parse (struct hostent * host) {
375375 UNREACHABLE ();
376- };
376+ }
377377};
378378
379379
Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ struct StringPtr {
108108
109109
110110 void Update (const char * str, size_t size) {
111- if (str_ == nullptr )
111+ if (str_ == nullptr ) {
112112 str_ = str;
113- else if (on_heap_ || str_ + size_ != str) {
113+ } else if (on_heap_ || str_ + size_ != str) {
114114 // Non-consecutive input, make a copy on the heap.
115115 // TODO(bnoordhuis) Use slab allocation, O(n) allocs is bad.
116116 char * s = new char [size_ + size];
You can’t perform that action at this time.
0 commit comments