fix(clang-tidy): modernize-type-traits (#6269)
This commit is contained in:
@@ -63,10 +63,9 @@ using QStringSetting = ChatterinoSetting<QString>;
|
||||
using QSizeSetting = ChatterinoSetting<QSize>;
|
||||
|
||||
template <typename Enum>
|
||||
class EnumSetting
|
||||
: public ChatterinoSetting<typename std::underlying_type<Enum>::type>
|
||||
class EnumSetting : public ChatterinoSetting<std::underlying_type_t<Enum>>
|
||||
{
|
||||
using Underlying = typename std::underlying_type<Enum>::type;
|
||||
using Underlying = std::underlying_type_t<Enum>;
|
||||
|
||||
public:
|
||||
using ChatterinoSetting<Underlying>::ChatterinoSetting;
|
||||
|
||||
@@ -85,8 +85,7 @@ public:
|
||||
return AccessGuard<T>(this->element_, this->mutex_);
|
||||
}
|
||||
|
||||
template <typename X = T,
|
||||
typename = std::enable_if_t<!std::is_const<X>::value>>
|
||||
template <typename X = T, typename = std::enable_if_t<!std::is_const_v<X>>>
|
||||
SharedAccessGuard<const X> accessConst() const
|
||||
{
|
||||
return SharedAccessGuard<const T>(this->element_, this->mutex_);
|
||||
|
||||
Reference in New Issue
Block a user