Add missing override and remove redundant virtual in folly
[folly.git] / folly / wangle / ssl / test / SSLCacheTest.cpp
index f3129e48291cd1a85d0bab20d1996710412651bd..24f805185d845b61767479a07075b48628124a50 100644 (file)
@@ -60,7 +60,7 @@ private:
 
 public:
   SSLCacheClient(EventBase* eventBase, SSL_SESSION **pSess, ClientRunner* cr);
-  ~SSLCacheClient() {
+  ~SSLCacheClient() override {
     if (session_ && !FLAGS_global)
       SSL_SESSION_free(session_);
     if (socket_ != nullptr) {
@@ -75,17 +75,14 @@ public:
 
   void start();
 
-  virtual void connectSuccess() noexcept;
+  void connectSuccess() noexcept override;
 
-  virtual void connectErr(const AsyncSocketException& ex)
-    noexcept ;
+  void connectErr(const AsyncSocketException& ex) noexcept override;
 
-  virtual void handshakeSuc(AsyncSSLSocket* sock) noexcept;
-
-  virtual void handshakeErr(
-    AsyncSSLSocket* sock,
-    const AsyncSocketException& ex) noexcept;
+  void handshakeSuc(AsyncSSLSocket* sock) noexcept override;
 
+  void handshakeErr(AsyncSSLSocket* sock,
+                    const AsyncSocketException& ex) noexcept override;
 };
 
 int