From 2431889b641138d86a31a970be0c9403a9cc6496 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 13 May 2018 00:25:14 +0200 Subject: [PATCH] Apply clang-format --- matroska/matroskatrack.cpp | 5 +++-- positioninset.h | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/matroska/matroskatrack.cpp b/matroska/matroskatrack.cpp index 8b01f78..253d360 100644 --- a/matroska/matroskatrack.cpp +++ b/matroska/matroskatrack.cpp @@ -226,7 +226,7 @@ void MatroskaTrack::assignPropertyFromTagValue(const std::unique_ptr>* = nullptr> NumberType tagValueToNumber(const TagValue &tagValue) +template > * = nullptr> NumberType tagValueToNumber(const TagValue &tagValue) { // optimization for Latin1/UTF-8 strings if (tagValue.type() == TagDataType::Text) { @@ -241,7 +241,8 @@ template >* = return stringToNumber(tagValue.toString(TagTextEncoding::Utf8)); } -template >* = nullptr> NumberType tagValueToBitrate(const TagValue &tagValue) +template > * = nullptr> +NumberType tagValueToBitrate(const TagValue &tagValue) { return stringToNumber(tagValue.toString(TagTextEncoding::Utf8)) / 1000; } diff --git a/positioninset.h b/positioninset.h index db32359..15b7ef8 100644 --- a/positioninset.h +++ b/positioninset.h @@ -21,7 +21,7 @@ namespace TagParser { class TAG_PARSER_EXPORT PositionInSet { public: constexpr PositionInSet(int32 position = 0, int32 total = 0); - template >* = nullptr> + template > * = nullptr> PositionInSet(const StringType &numericString); constexpr int32 position() const; @@ -29,7 +29,7 @@ public: constexpr bool isNull() const; constexpr bool operator==(const PositionInSet &other) const; - template >* = nullptr> + template > * = nullptr> StringType toString() const; private: @@ -43,7 +43,7 @@ private: * \param numericString Specifies the string containing the position and possibly * the total element count (separated by "/"). */ -template >*> +template > *> PositionInSet::PositionInSet(const StringType &numericString) : m_position(0) , m_total(0) @@ -105,7 +105,7 @@ constexpr inline bool PositionInSet::operator==(const PositionInSet &other) cons /*! * \brief Returns the string representation of the current PositionInSet. */ -template >*> +template > *> StringType PositionInSet::toString() const { std::basic_stringstream ss;