Turn PinMappings class into a type alias

This commit is contained in:
Alejandro Domínguez 2024-08-31 17:30:55 +02:00 committed by Robin Gareus
parent da0e6c7d60
commit e48d97ed69
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -333,11 +333,10 @@ private:
* which is known to be troublesome with Visual C++ :- * which is known to be troublesome with Visual C++ :-
* https://www.boost.org/doc/libs/1_65_0/libs/type_traits/doc/html/boost_typetraits/reference/aligned_storage.html * https://www.boost.org/doc/libs/1_65_0/libs/type_traits/doc/html/boost_typetraits/reference/aligned_storage.html
*/ */
class PinMappings : public std::map <uint32_t, ARDOUR::ChanMapping> typedef std::map <uint32_t, ARDOUR::ChanMapping> PinMappings;
#else #else
class PinMappings : public std::map <uint32_t, ARDOUR::ChanMapping, std::less<uint32_t>, PBD::StackAllocator<std::pair<const uint32_t, ARDOUR::ChanMapping>, 4> > typedef std::map <uint32_t, ARDOUR::ChanMapping, std::less<uint32_t>, PBD::StackAllocator<std::pair<const uint32_t, ARDOUR::ChanMapping>, 4> > PinMappings;
#endif #endif
{};
PinMappings _in_map; PinMappings _in_map;
PinMappings _out_map; PinMappings _out_map;