Use "= default" to denote default constructor or destructor
[WebKit-https.git] / Source / WebCore / loader / cache / CachedFontClient.h
index 0ae6418..50e63f5 100644 (file)
@@ -23,8 +23,7 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef CachedFontClient_h
-#define CachedFontClient_h
+#pragma once
 
 #include "CachedResourceClient.h"
 
@@ -34,12 +33,10 @@ class CachedFont;
 
 class CachedFontClient : public CachedResourceClient {
 public:
-    virtual ~CachedFontClient() { }
+    virtual ~CachedFontClient() = default;
     static CachedResourceClientType expectedType() { return FontType; }
-    virtual CachedResourceClientType resourceClientType() const { return expectedType(); }
-    virtual void fontLoaded(CachedFont*) { }
+    CachedResourceClientType resourceClientType() const override { return expectedType(); }
+    virtual void fontLoaded(CachedFont&) { }
 };
 
 } // namespace WebCore
-
-#endif // CachedFontClient_h