Unreviewed. Fix the build with GCC 4.9 after r207463.
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Oct 2016 07:15:31 +0000 (07:15 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Oct 2016 07:15:31 +0000 (07:15 +0000)
Add constructors to MediaConstraintsData.

* Modules/mediastream/MediaConstraintsImpl.h:
(WebCore::MediaConstraintsData::MediaConstraintsData):

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

Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/MediaConstraintsImpl.h

index c4d14c6..b0f03e8 100644 (file)
@@ -1,3 +1,12 @@
+2016-10-19  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        Unreviewed. Fix the build with GCC 4.9 after r207463.
+
+        Add constructors to MediaConstraintsData.
+
+        * Modules/mediastream/MediaConstraintsImpl.h:
+        (WebCore::MediaConstraintsData::MediaConstraintsData):
+
 2016-10-19  Jer Noble  <jer.noble@apple.com>
 
         [Mac][MSE] Movies with a 'mehd' box have a zero-duration
index a818377..6601ef7 100644 (file)
 namespace WebCore {
 
 struct MediaConstraintsData {
+    MediaConstraintsData() = default;
+    MediaConstraintsData(MediaTrackConstraintSetMap&& mandatoryConstraints, Vector<MediaTrackConstraintSetMap>&& advancedConstraints, bool isValid)
+        : mandatoryConstraints(WTFMove(mandatoryConstraints))
+        , advancedConstraints(WTFMove(advancedConstraints))
+        , isValid(isValid)
+    {
+    }
+
     MediaTrackConstraintSetMap mandatoryConstraints;
     Vector<MediaTrackConstraintSetMap> advancedConstraints;
     bool isValid { false };