Apply clang-format

This commit is contained in:
Martchus 2023-02-03 13:31:40 +01:00
parent a9c4bca679
commit cb93d6900c
6 changed files with 8 additions and 11 deletions

View File

@ -14,8 +14,7 @@ namespace TagParser {
* *
* A template specialization for each FieldMapBasedTag subclass must be provided. * A template specialization for each FieldMapBasedTag subclass must be provided.
*/ */
template <typename ImplementationType> class FieldMapBasedTagTraits { template <typename ImplementationType> class FieldMapBasedTagTraits {};
};
/*! /*!
* \class TagParser::FieldMapBasedTag * \class TagParser::FieldMapBasedTag

View File

@ -31,8 +31,7 @@ class Diagnostics;
* *
* For an example of such a specialization see FileElementTraits<Mp4Atom> or FileElementTraits<EbmlElement>. * For an example of such a specialization see FileElementTraits<Mp4Atom> or FileElementTraits<EbmlElement>.
*/ */
template <typename ImplementationType> class FileElementTraits { template <typename ImplementationType> class FileElementTraits {};
};
/*! /*!
* \class TagParser::GenericFileElement * \class TagParser::GenericFileElement

View File

@ -13,8 +13,7 @@ template <class implementationType> class TagField;
* *
* A template specialization for each TagField subclass must be provided. * A template specialization for each TagField subclass must be provided.
*/ */
template <typename ImplementationType> class TagFieldTraits { template <typename ImplementationType> class TagFieldTraits {};
};
/*! /*!
* \brief The TagField class is used by FieldMapBasedTag to store the fields. * \brief The TagField class is used by FieldMapBasedTag to store the fields.

View File

@ -822,7 +822,7 @@ struct SegmentData {
, sizeDenotationLength(0) , sizeDenotationLength(0)
{ {
} }
SegmentData(SegmentData&&) = default; SegmentData(SegmentData &&) = default;
/// \brief whether CRC-32 checksum is present /// \brief whether CRC-32 checksum is present
bool hasCrc32; bool hasCrc32;

View File

@ -1357,8 +1357,8 @@ void Mp4Track::makeMedia(Diagnostics &diag)
codedLanguage = 0; codedLanguage = 0;
break; break;
} }
diag.emplace_back( diag.emplace_back(DiagLevel::Warning, "Assigned language \"" % *language + "\" is of an invalid format. Setting language to undefined.",
DiagLevel::Warning, "Assigned language \"" % *language + "\" is of an invalid format. Setting language to undefined.", "making mdhd atom"); "making mdhd atom");
codedLanguage = 0x55C4; // und(efined) codedLanguage = 0x55C4; // und(efined)
break; break;
} }

View File

@ -187,7 +187,7 @@ class AbortableProgressFeedback : public BasicProgressFeedback<AbortableProgress
public: public:
explicit AbortableProgressFeedback(const Callback &callback, const Callback &percentageOnlyCallback = Callback()); explicit AbortableProgressFeedback(const Callback &callback, const Callback &percentageOnlyCallback = Callback());
explicit AbortableProgressFeedback(Callback &&callback = Callback(), Callback &&percentageOnlyCallback = Callback()); explicit AbortableProgressFeedback(Callback &&callback = Callback(), Callback &&percentageOnlyCallback = Callback());
AbortableProgressFeedback(const AbortableProgressFeedback&); AbortableProgressFeedback(const AbortableProgressFeedback &);
bool isAborted() const; bool isAborted() const;
void tryToAbort(); void tryToAbort();
@ -224,7 +224,7 @@ inline AbortableProgressFeedback::AbortableProgressFeedback(Callback &&callback,
/*! /*!
* \brief Constructs a new AbortableProgressFeedback based on \a other. * \brief Constructs a new AbortableProgressFeedback based on \a other.
*/ */
inline AbortableProgressFeedback::AbortableProgressFeedback(const AbortableProgressFeedback& other) inline AbortableProgressFeedback::AbortableProgressFeedback(const AbortableProgressFeedback &other)
: BasicProgressFeedback<AbortableProgressFeedback>(other) : BasicProgressFeedback<AbortableProgressFeedback>(other)
, m_aborted(other.isAborted()) , m_aborted(other.isAborted())
{ {