Changeset 163971 in webkit


Ignore:
Timestamp:
Feb 12, 2014 12:29:33 PM (10 years ago)
Author:
eric.carlson@apple.com
Message:

Cleanup the code added for https://bugs.webkit.org/show_bug.cgi?id=128125.

Not reviewed.

  • html/HTMLMediaSession.cpp:

(WebCore::restrictionName): Don't need a "break" after a "return" in a case statement.

  • platform/audio/MediaSession.cpp:

(WebCore::stateName): Ditto.

  • platform/audio/ios/MediaSessionManagerIOS.mm:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r163969 r163971  
     12014-02-12  Eric Carlson  <eric.carlson@apple.com>
     2
     3        Cleanup the code added for https://bugs.webkit.org/show_bug.cgi?id=128125.
     4
     5        Not reviewed.
     6
     7        * html/HTMLMediaSession.cpp:
     8        (WebCore::restrictionName): Don't need a "break" after a "return" in a case statement.
     9        * platform/audio/MediaSession.cpp:
     10        (WebCore::stateName): Ditto.
     11        * platform/audio/ios/MediaSessionManagerIOS.mm:
     12
    1132014-02-12  Andreas Kling  <akling@apple.com>
    214
  • trunk/Source/WebCore/html/HTMLMediaSession.cpp

    r163390 r163971  
    4646static const char* restrictionName(HTMLMediaSession::BehaviorRestrictions restriction)
    4747{
    48 #define CASE(_restriction) case HTMLMediaSession::_restriction: return #_restriction; break;
     48#define CASE(restriction) case HTMLMediaSession::restriction: return #restriction
    4949    switch (restriction) {
    5050    CASE(NoRestrictions);
  • trunk/Source/WebCore/platform/audio/MediaSession.cpp

    r163393 r163971  
    3636static const char* stateName(MediaSession::State state)
    3737{
    38 #define CASE(_state) case MediaSession::_state: return #_state; break;
     38#define CASE(state) case MediaSession::state: return #state
    3939    switch (state) {
    4040    CASE(Idle);
  • trunk/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm

    r163390 r163971  
    6565- (id)initWithCallback:(MediaSessionManageriOS*)callback;
    6666- (void)clearCallback;
    67 - (void)interruption:(NSNotification*)notification;
    68 - (void)applicationWillEnterForeground:(NSNotification*)notification;
    69 - (void)applicationWillResignActive:(NSNotification*)notification;
     67- (void)interruption:(NSNotification *)notification;
     68- (void)applicationWillEnterForeground:(NSNotification *)notification;
     69- (void)applicationWillResignActive:(NSNotification *)notification;
    7070@end
    7171
Note: See TracChangeset for help on using the changeset viewer.