Title: [163971] trunk/Source/WebCore
Revision
163971
Author
[email protected]
Date
2014-02-12 12:29:33 -0800 (Wed, 12 Feb 2014)

Log 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:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (163970 => 163971)


--- trunk/Source/WebCore/ChangeLog	2014-02-12 20:28:57 UTC (rev 163970)
+++ trunk/Source/WebCore/ChangeLog	2014-02-12 20:29:33 UTC (rev 163971)
@@ -1,3 +1,15 @@
+2014-02-12  Eric Carlson  <[email protected]>
+
+        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:
+
 2014-02-12  Andreas Kling  <[email protected]>
 
         RenderNamedFlowThread should only support RenderElement children.

Modified: trunk/Source/WebCore/html/HTMLMediaSession.cpp (163970 => 163971)


--- trunk/Source/WebCore/html/HTMLMediaSession.cpp	2014-02-12 20:28:57 UTC (rev 163970)
+++ trunk/Source/WebCore/html/HTMLMediaSession.cpp	2014-02-12 20:29:33 UTC (rev 163971)
@@ -45,7 +45,7 @@
 #if !LOG_DISABLED
 static const char* restrictionName(HTMLMediaSession::BehaviorRestrictions restriction)
 {
-#define CASE(_restriction) case HTMLMediaSession::_restriction: return #_restriction; break;
+#define CASE(restriction) case HTMLMediaSession::restriction: return #restriction
     switch (restriction) {
     CASE(NoRestrictions);
     CASE(RequireUserGestureForLoad);

Modified: trunk/Source/WebCore/platform/audio/MediaSession.cpp (163970 => 163971)


--- trunk/Source/WebCore/platform/audio/MediaSession.cpp	2014-02-12 20:28:57 UTC (rev 163970)
+++ trunk/Source/WebCore/platform/audio/MediaSession.cpp	2014-02-12 20:29:33 UTC (rev 163971)
@@ -35,7 +35,7 @@
 #if !LOG_DISABLED
 static const char* stateName(MediaSession::State state)
 {
-#define CASE(_state) case MediaSession::_state: return #_state; break;
+#define CASE(state) case MediaSession::state: return #state
     switch (state) {
     CASE(Idle);
     CASE(Playing);

Modified: trunk/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm (163970 => 163971)


--- trunk/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm	2014-02-12 20:28:57 UTC (rev 163970)
+++ trunk/Source/WebCore/platform/audio/ios/MediaSessionManagerIOS.mm	2014-02-12 20:29:33 UTC (rev 163971)
@@ -64,9 +64,9 @@
 
 - (id)initWithCallback:(MediaSessionManageriOS*)callback;
 - (void)clearCallback;
-- (void)interruption:(NSNotification*)notification;
-- (void)applicationWillEnterForeground:(NSNotification*)notification;
-- (void)applicationWillResignActive:(NSNotification*)notification;
+- (void)interruption:(NSNotification *)notification;
+- (void)applicationWillEnterForeground:(NSNotification *)notification;
+- (void)applicationWillResignActive:(NSNotification *)notification;
 @end
 
 namespace WebCore {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to