Title: [205391] trunk/Source/WebCore
- Revision
- 205391
- Author
- [email protected]
- Date
- 2016-09-02 17:34:26 -0700 (Fri, 02 Sep 2016)
Log Message
[Mac] Remove unnecessary RetainPtr in NeverDestroyed value
https://bugs.webkit.org/show_bug.cgi?id=161553
Patch by Joseph Pecoraro <[email protected]> on 2016-09-02
Reviewed by Daniel Bates.
* platform/ios/WebCoreMotionManager.mm:
(+[WebCoreMotionManager sharedManager]):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (205390 => 205391)
--- trunk/Source/WebCore/ChangeLog 2016-09-03 00:32:49 UTC (rev 205390)
+++ trunk/Source/WebCore/ChangeLog 2016-09-03 00:34:26 UTC (rev 205391)
@@ -1,3 +1,13 @@
+2016-09-02 Joseph Pecoraro <[email protected]>
+
+ [Mac] Remove unnecessary RetainPtr in NeverDestroyed value
+ https://bugs.webkit.org/show_bug.cgi?id=161553
+
+ Reviewed by Daniel Bates.
+
+ * platform/ios/WebCoreMotionManager.mm:
+ (+[WebCoreMotionManager sharedManager]):
+
2016-09-02 Alex Christensen <[email protected]>
URLParser should parse file URLs
Modified: trunk/Source/WebCore/platform/ios/WebCoreMotionManager.mm (205390 => 205391)
--- trunk/Source/WebCore/platform/ios/WebCoreMotionManager.mm 2016-09-03 00:32:49 UTC (rev 205390)
+++ trunk/Source/WebCore/platform/ios/WebCoreMotionManager.mm 2016-09-03 00:34:26 UTC (rev 205391)
@@ -32,8 +32,6 @@
#import <objc/objc-runtime.h>
#import <wtf/MathExtras.h>
#import <wtf/NeverDestroyed.h>
-#import <wtf/PassRefPtr.h>
-#import <wtf/RetainPtr.h>
#if PLATFORM(IOS)
@@ -69,8 +67,8 @@
+ (WebCoreMotionManager *)sharedManager
{
- static NeverDestroyed<RetainPtr<WebCoreMotionManager>> sharedMotionManager([[WebCoreMotionManager alloc] init]);
- return sharedMotionManager.get().get();
+ static WebCoreMotionManager *sharedMotionManager = [[WebCoreMotionManager alloc] init];
+ return sharedMotionManager;
}
- (id)init
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes