File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ class DNSResolver : public folly::DelayedDestruction {
41
41
class QueryBase ;
42
42
43
43
public:
44
- typedef std::unique_ptr<DNSResolver, folly::DelayedDestruction::Destructor>
45
- UniquePtr ;
44
+ using UniquePtr =
45
+ std::unique_ptr<DNSResolver, folly::DelayedDestruction::Destructor> ;
46
46
47
47
enum class ResolverType : uint32_t {
48
48
UNKNOWN = 0 ,
Original file line number Diff line number Diff line change @@ -21,9 +21,8 @@ namespace proxygen {
21
21
// Basic callback for name resolution
22
22
class NaiveResolutionCallback : public DNSResolver ::ResolutionCallback {
23
23
public:
24
- typedef std::function<void (std::vector<DNSResolver::Answer>&&,
25
- const folly::exception_wrapper&& ex)>
26
- Handler;
24
+ using Handler = std::function<void (std::vector<DNSResolver::Answer> &&,
25
+ const folly::exception_wrapper &&)>;
27
26
28
27
// Return a DNSResolver::Exception(DNSResolver::NODATA) wrapper
29
28
static folly::exception_wrapper makeNoNameException () noexcept ;
@@ -33,7 +32,7 @@ class NaiveResolutionCallback : public DNSResolver::ResolutionCallback {
33
32
34
33
void resolutionSuccess (
35
34
std::vector<DNSResolver::Answer> answers) noexcept override ;
36
- void resolutionError (const folly::exception_wrapper& exp) noexcept override ;
35
+ void resolutionError (const folly::exception_wrapper & exp) noexcept override ;
37
36
38
37
private:
39
38
Handler handler_;
You can’t perform that action at this time.
0 commit comments