Improve use of NeverDestroyed
[WebKit-https.git] / Source / WebCore / platform / wpe / RenderThemeWPE.cpp
index 4d293d8..e5d8027 100644 (file)
@@ -35,8 +35,8 @@ namespace WebCore {
 
 RenderTheme& RenderTheme::singleton()
 {
-    static NeverDestroyed<Ref<RenderTheme>> theme(RenderThemeWPE::create());
-    return theme.get();
+    static NeverDestroyed<RenderThemeWPE> theme;
+    return theme;
 }
 
 void RenderThemeWPE::updateCachedSystemFontDescription(CSSValueID, FontCascadeDescription&) const