Skip to content

Commit 86b430b

Browse files
generatedunixname89002005287564facebook-github-bot
generatedunixname89002005287564
authored andcommitted
Fix CQS signal modernize-use-using in fbcode/proxygen/lib/dns
Reviewed By: hanidamlaj Differential Revision: D75280835 fbshipit-source-id: 9f012cef292e11f67896fdabac461d84ba5e438b
1 parent 9f19de6 commit 86b430b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

proxygen/lib/dns/DNSResolver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class DNSResolver : public folly::DelayedDestruction {
4141
class QueryBase;
4242

4343
public:
44-
typedef std::unique_ptr<DNSResolver, folly::DelayedDestruction::Destructor>
45-
UniquePtr;
44+
using UniquePtr =
45+
std::unique_ptr<DNSResolver, folly::DelayedDestruction::Destructor>;
4646

4747
enum class ResolverType : uint32_t {
4848
UNKNOWN = 0,

proxygen/lib/dns/NaiveResolutionCallback.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ namespace proxygen {
2121
// Basic callback for name resolution
2222
class NaiveResolutionCallback : public DNSResolver::ResolutionCallback {
2323
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 &&)>;
2726

2827
// Return a DNSResolver::Exception(DNSResolver::NODATA) wrapper
2928
static folly::exception_wrapper makeNoNameException() noexcept;
@@ -33,7 +32,7 @@ class NaiveResolutionCallback : public DNSResolver::ResolutionCallback {
3332

3433
void resolutionSuccess(
3534
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;
3736

3837
private:
3938
Handler handler_;

0 commit comments

Comments
 (0)