Title: [147560] trunk/Source/WebCore
Revision
147560
Author
[email protected]
Date
2013-04-03 08:51:20 -0700 (Wed, 03 Apr 2013)

Log Message

BUILD FIX (r147494): -[AVAudioSession setCategory:error:] takes NSError**

Fixes the following build failure:

    Source/WebCore/platform/audio/ios/AudioSessionIOS.mm:151:71: error: cannot initialize a parameter of type 'NSError **' with an lvalue of type 'NSError *'
        [[AVAudioSession sharedInstance] setCategory:categoryString error:error];
                                                                          ^~~~~

* platform/audio/ios/AudioSessionIOS.mm:
(WebCore::AudioSession::setCategory): Add '&' operator.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (147559 => 147560)


--- trunk/Source/WebCore/ChangeLog	2013-04-03 15:45:13 UTC (rev 147559)
+++ trunk/Source/WebCore/ChangeLog	2013-04-03 15:51:20 UTC (rev 147560)
@@ -1,3 +1,16 @@
+2013-04-03  David Kilzer  <[email protected]>
+
+        BUILD FIX (r147494): -[AVAudioSession setCategory:error:] takes NSError**
+
+        Fixes the following build failure:
+
+            Source/WebCore/platform/audio/ios/AudioSessionIOS.mm:151:71: error: cannot initialize a parameter of type 'NSError **' with an lvalue of type 'NSError *'
+                [[AVAudioSession sharedInstance] setCategory:categoryString error:error];
+                                                                                  ^~~~~
+
+        * platform/audio/ios/AudioSessionIOS.mm:
+        (WebCore::AudioSession::setCategory): Add '&' operator.
+
 2013-04-03  Felipe Zimmerle  <[email protected]>
 
         CSP blocks inline style when cloning a node

Modified: trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm (147559 => 147560)


--- trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm	2013-04-03 15:45:13 UTC (rev 147559)
+++ trunk/Source/WebCore/platform/audio/ios/AudioSessionIOS.mm	2013-04-03 15:51:20 UTC (rev 147560)
@@ -148,7 +148,7 @@
         categoryString = nil;
     }
     NSError *error = nil;
-    [[AVAudioSession sharedInstance] setCategory:categoryString error:error];
+    [[AVAudioSession sharedInstance] setCategory:categoryString error:&error];
     ASSERT(!error);
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to