Changeset 205391 in webkit


Ignore:
Timestamp:
Sep 2, 2016 5:34:26 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

[Mac] Remove unnecessary RetainPtr in NeverDestroyed value
https://bugs.webkit.org/show_bug.cgi?id=161553

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-09-02
Reviewed by Daniel Bates.

  • platform/ios/WebCoreMotionManager.mm:

(+[WebCoreMotionManager sharedManager]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r205390 r205391  
     12016-09-02  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        [Mac] Remove unnecessary RetainPtr in NeverDestroyed value
     4        https://bugs.webkit.org/show_bug.cgi?id=161553
     5
     6        Reviewed by Daniel Bates.
     7
     8        * platform/ios/WebCoreMotionManager.mm:
     9        (+[WebCoreMotionManager sharedManager]):
     10
    1112016-09-02  Alex Christensen  <achristensen@webkit.org>
    212
  • trunk/Source/WebCore/platform/ios/WebCoreMotionManager.mm

    r194819 r205391  
    3333#import <wtf/MathExtras.h>
    3434#import <wtf/NeverDestroyed.h>
    35 #import <wtf/PassRefPtr.h>
    36 #import <wtf/RetainPtr.h>
    3735
    3836#if PLATFORM(IOS)
     
    7068+ (WebCoreMotionManager *)sharedManager
    7169{
    72     static NeverDestroyed<RetainPtr<WebCoreMotionManager>> sharedMotionManager([[WebCoreMotionManager alloc] init]);
    73     return sharedMotionManager.get().get();
     70    static WebCoreMotionManager *sharedMotionManager = [[WebCoreMotionManager alloc] init];
     71    return sharedMotionManager;
    7472}
    7573
Note: See TracChangeset for help on using the changeset viewer.