mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 16:37:21 -06:00
Use implicit copy-constructor generated by compiler
This also suppresses the following clang warning: warning: definition of implicit copy assignment operator for 'Version<unsigned short, 2>' is deprecated because it has a user-declared copy constructor [-Wdeprecated-copy]
This commit is contained in:
@@ -48,12 +48,7 @@ namespace Utils
|
||||
typedef T ComponentType;
|
||||
typedef Version<T, N, Mandatory> ThisType;
|
||||
|
||||
constexpr Version()
|
||||
: m_components {{}}
|
||||
{
|
||||
}
|
||||
|
||||
constexpr Version(const ThisType &other) = default;
|
||||
constexpr Version() = default;
|
||||
|
||||
template <typename ... Other>
|
||||
constexpr Version(Other ... components)
|
||||
@@ -187,7 +182,7 @@ namespace Utils
|
||||
{
|
||||
}
|
||||
|
||||
ComponentsArray m_components;
|
||||
ComponentsArray m_components {{}};
|
||||
};
|
||||
|
||||
template <typename T, std::size_t N, std::size_t Mandatory>
|
||||
|
||||
Reference in New Issue
Block a user