BUILD FIX (r147494): -[AVAudioSession setCategory:error:] takes NSError**
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Apr 2013 15:51:20 +0000 (15:51 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 3 Apr 2013 15:51:20 +0000 (15:51 +0000)
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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@147560 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/audio/ios/AudioSessionIOS.mm

index d30216b..836b46a 100644 (file)
@@ -1,3 +1,16 @@
+2013-04-03  David Kilzer  <ddkilzer@apple.com>
+
+        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  <felipe@zimmerle.org>
 
         CSP blocks inline style when cloning a node
index 90af9de..9fa8e3b 100644 (file)
@@ -148,7 +148,7 @@ void AudioSession::setCategory(CategoryType newCategory)
         categoryString = nil;
     }
     NSError *error = nil;
-    [[AVAudioSession sharedInstance] setCategory:categoryString error:error];
+    [[AVAudioSession sharedInstance] setCategory:categoryString error:&error];
     ASSERT(!error);
 }