Bug 1345756: P2. Fix coding style. r?gerald draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Thu, 09 Mar 2017 10:32:08 +0100
changeset 496772 a1c4ceb4af485e3ac99bfa314e07912bfb0d1d33
parent 496771 c1193b6ce8cf103312ffe3cb916184a850b2945c
child 496773 b4f52f481c49f32664c4aabe1f7ad28b5c44a5e4
push id48688
push userbmo:jyavenard@mozilla.com
push dateFri, 10 Mar 2017 17:25:09 +0000
reviewersgerald
bugs1345756
milestone55.0a1
Bug 1345756: P2. Fix coding style. r?gerald MozReview-Commit-ID: C7q5HjycoH2
dom/media/MediaMIMETypes.h
--- a/dom/media/MediaMIMETypes.h
+++ b/dom/media/MediaMIMETypes.h
@@ -2,19 +2,19 @@
 /* vim:set ts=2 sw=2 sts=2 et cindent: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef MediaMIMETypes_h_
 #define MediaMIMETypes_h_
 
+#include "VideoUtils.h"
 #include "mozilla/Maybe.h"
 #include "nsString.h"
-#include "VideoUtils.h"
 
 namespace mozilla {
 
 // Class containing pointing at a media MIME "type/subtype" string literal.
 // See IsMediaMIMEType for restrictions.
 // Mainly used to help construct a MediaMIMEType through the statically-checked
 // MEDIAMIMETYPE macro, or to compare a MediaMIMEType to a literal.
 class DependentMediaMIMEType
@@ -47,17 +47,18 @@ private:
 // Class containing only pre-parsed lowercase media MIME type/subtype.
 class MediaMIMEType
 {
 public:
   // Construction from a DependentMediaMIMEType, with its inherent checks.
   // Implicit so MEDIAMIMETYPE can be used wherever a MediaMIMEType is expected.
   MOZ_IMPLICIT MediaMIMEType(const DependentMediaMIMEType& aType)
     : mMIMEType(aType.AsDependentString())
-  {}
+  {
+  }
 
   // MIME "type/subtype", always lowercase.
   const nsACString& AsString() const { return mMIMEType; }
 
   // Comparison with DependentMediaMIMEType.
   // Useful to compare to MEDIAMIMETYPE literals.
   bool operator==(const DependentMediaMIMEType& aOther) const
   {
@@ -101,26 +102,25 @@ Maybe<MediaMIMEType> MakeMediaMIMEType(c
 Maybe<MediaMIMEType> MakeMediaMIMEType(const nsACString& aType);
 Maybe<MediaMIMEType> MakeMediaMIMEType(const char* aType);
 
 
 // A list of codecs attached to a MediaExtendedMIMEType.
 class MediaCodecs
 {
 public:
-  MediaCodecs() {}
+  MediaCodecs() { }
   // Construction from a comma-separated list of codecs. Unchecked.
-  explicit MediaCodecs(const nsAString& aCodecs)
-    : mCodecs(aCodecs)
-  {}
+  explicit MediaCodecs(const nsAString& aCodecs) : mCodecs(aCodecs) { }
   // Construction from a literal comma-separated list of codecs. Unchecked.
   template <size_t N>
   explicit MediaCodecs(const char (&aCodecs)[N])
     : mCodecs(NS_ConvertUTF8toUTF16(aCodecs, N - 1))
-  {}
+  {
+  }
 
   bool IsEmpty() const { return mCodecs.IsEmpty(); }
   const nsAString& AsString() const { return mCodecs; }
 
   using RangeType =
     const StringListRange<nsString, StringListRangeEmptyItems::ProcessEmptyItems>;
 
   // Produces a range object with begin()&end(), can be used in range-for loops.