| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -369,11 +369,11 @@ class QueryWrap : public AsyncWrap { | |||
| 369 | 369 | // Subclasses should implement the appropriate Parse method. | |
| 370 | 370 | virtual void Parse(unsigned char* buf, int len) { | |
| 371 | 371 | UNREACHABLE(); | |
| 372 | - }; | ||
| 372 | + } | ||
| 373 | 373 | ||
| 374 | 374 | virtual void Parse(struct hostent* host) { | |
| 375 | 375 | UNREACHABLE(); | |
| 376 | - }; | ||
| 376 | + } | ||
| 377 | 377 | }; | |
| 378 | 378 | ||
| 379 | 379 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -108,9 +108,9 @@ struct StringPtr { | |||
| 108 | 108 | ||
| 109 | 109 | ||
| 110 | 110 | void Update(const char* str, size_t size) { | |
| 111 | - if (str_ == nullptr) | ||
| 111 | + if (str_ == nullptr) { | ||
| 112 | 112 | str_ = str; | |
| 113 | - else if (on_heap_ || str_ + size_ != str) { | ||
| 113 | + } else if (on_heap_ || str_ + size_ != str) { | ||
| 114 | 114 | // Non-consecutive input, make a copy on the heap. | |
| 115 | 115 | // TODO(bnoordhuis) Use slab allocation, O(n) allocs is bad. | |
| 116 | 116 | char* s = new char[size_ + size]; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments