ScrollbarThemes should be returned by reference.
[WebKit-https.git] / Source / WebCore / platform / win / ScrollbarThemeWin.cpp
index 3a09444..28dfbfc 100644 (file)
@@ -89,10 +89,10 @@ static void checkAndInitScrollbarTheme()
         scrollbarTheme = OpenThemeData(0, L"Scrollbar");
 }
 
-ScrollbarTheme* ScrollbarTheme::nativeTheme()
+ScrollbarTheme& ScrollbarTheme::nativeTheme()
 {
     static ScrollbarThemeWin winTheme;
-    return &winTheme;
+    return winTheme;
 }
 
 ScrollbarThemeWin::ScrollbarThemeWin()