Use unsigned int as underlying type for enums
This commit is contained in:
parent
cbb54d5aeb
commit
f5bd1dc4e8
|
@ -27,7 +27,7 @@ class VorbisComment;
|
||||||
class Diagnostics;
|
class Diagnostics;
|
||||||
class AbortableProgressFeedback;
|
class AbortableProgressFeedback;
|
||||||
|
|
||||||
enum class MediaType;
|
DECLARE_ENUM_CLASS(MediaType, unsigned int);
|
||||||
DECLARE_ENUM_CLASS(TagType, unsigned int);
|
DECLARE_ENUM_CLASS(TagType, unsigned int);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace TagParser {
|
||||||
/*!
|
/*!
|
||||||
* \brief The MediaType enum specifies the type of media data (audio, video, text, ...).
|
* \brief The MediaType enum specifies the type of media data (audio, video, text, ...).
|
||||||
*/
|
*/
|
||||||
enum class MediaType {
|
enum class MediaType : unsigned int {
|
||||||
Unknown, /**< the type is unknown */
|
Unknown, /**< the type is unknown */
|
||||||
Audio, /**< audio/sound */
|
Audio, /**< audio/sound */
|
||||||
Video, /**< video */
|
Video, /**< video */
|
||||||
|
@ -25,7 +25,7 @@ extern const char *TAG_PARSER_EXPORT mediaTypeName(MediaType mediaType);
|
||||||
/*!
|
/*!
|
||||||
* \brief The GeneralMediaFormat enum specifies the general format of media data (PCM, MPEG-4, PNG, ...).
|
* \brief The GeneralMediaFormat enum specifies the general format of media data (PCM, MPEG-4, PNG, ...).
|
||||||
*/
|
*/
|
||||||
enum class GeneralMediaFormat {
|
enum class GeneralMediaFormat : unsigned int {
|
||||||
Unknown, /**< the format is unknown */
|
Unknown, /**< the format is unknown */
|
||||||
Aac, /**< Advanced Video Coding */
|
Aac, /**< Advanced Video Coding */
|
||||||
Ac3, /**< Dolby Digital */
|
Ac3, /**< Dolby Digital */
|
||||||
|
|
|
@ -14,7 +14,7 @@ DECLARE_ENUM_CLASS(TagTargetLevel, byte);
|
||||||
*
|
*
|
||||||
* Raw streams like ADTS or raw FLAC count as container format in this context.
|
* Raw streams like ADTS or raw FLAC count as container format in this context.
|
||||||
*/
|
*/
|
||||||
enum class ContainerFormat {
|
enum class ContainerFormat : unsigned int {
|
||||||
Unknown, /**< unknown container format */
|
Unknown, /**< unknown container format */
|
||||||
Ac3Frames, /**< raw AC-3/Dolby Digital frames */
|
Ac3Frames, /**< raw AC-3/Dolby Digital frames */
|
||||||
Adts, /**< Audio Data Transport Stream */
|
Adts, /**< Audio Data Transport Stream */
|
||||||
|
|
Loading…
Reference in New Issue