clang-tidy: use using instead of typedef (#1120)

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2023-09-16 00:06:14 -07:00
committed by GitHub
parent 6ed0ca28db
commit 653c2fe9e1
23 changed files with 54 additions and 48 deletions

View File

@ -152,7 +152,11 @@ namespace TagLib {
#ifdef DOXYGEN
}
#else
namespace Ogg { namespace Vorbis { typedef TagLib::Vorbis::File File; } }
namespace Ogg {
namespace Vorbis {
using File = TagLib::Vorbis::File;
}
}
#endif
} // namespace TagLib

View File

@ -136,7 +136,11 @@ namespace TagLib {
#ifdef DOXYGEN
}
#else
namespace Ogg { namespace Vorbis { typedef TagLib::Vorbis::Properties Properties; } }
namespace Ogg {
namespace Vorbis {
using Properties = TagLib::Vorbis::Properties;
}
}
#endif
} // namespace TagLib

View File

@ -50,7 +50,7 @@ namespace TagLib {
*
* \see XiphComment::fieldListMap()
*/
typedef Map<String, StringList> FieldListMap;
using FieldListMap = Map<String, StringList>;
//! Ogg Vorbis comment implementation