Bug 1345756: P2. Fix coding style. r?gerald
MozReview-Commit-ID: C7q5HjycoH2
--- 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.