From 42a0d0366f68832f96022b95613cc0adf966f2cb Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Fri, 15 Jan 2021 16:08:59 -0800 Subject: [PATCH] Rename _No to _Nope. --- stl/inc/memory | 6 +++--- stl/inc/xlocale | 2 +- stl/inc/xloctime | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/stl/inc/memory b/stl/inc/memory index 91e7860b9c3..beac884f890 100644 --- a/stl/inc/memory +++ b/stl/inc/memory @@ -2082,10 +2082,10 @@ struct _Alignas_storage_unit { alignas(_Align) char _Space[_Align]; }; -enum class _Check_overflow : bool { _No, _Yes }; +enum class _Check_overflow : bool { _Nope, _Yes }; template -_NODISCARD size_t _Calculate_bytes_for_flexible_array(const size_t _Count) noexcept(_Check == _Check_overflow::_No) { +_NODISCARD size_t _Calculate_bytes_for_flexible_array(const size_t _Count) noexcept(_Check == _Check_overflow::_Nope) { constexpr size_t _Align = alignof(_Refc); size_t _Bytes = sizeof(_Refc); // contains storage for one element @@ -2691,7 +2691,7 @@ private: _Rebind_alloc_t<_Alloc, _Storage> _Al(this->_Get_val()); const size_t _Bytes = - _Calculate_bytes_for_flexible_array<_Ref_count_unbounded_array_alloc, _Check_overflow::_No>(_Size); + _Calculate_bytes_for_flexible_array<_Ref_count_unbounded_array_alloc, _Check_overflow::_Nope>(_Size); const size_t _Storage_units = _Bytes / sizeof(_Storage); this->~_Ref_count_unbounded_array_alloc(); diff --git a/stl/inc/xlocale b/stl/inc/xlocale index 326a0db4703..fcdbf63bb17 100644 --- a/stl/inc/xlocale +++ b/stl/inc/xlocale @@ -3242,7 +3242,7 @@ protected: }; // FUNCTION TEMPLATE _Getloctxt -enum class _Case_sensitive : bool { _No, _Yes }; +enum class _Case_sensitive : bool { _Nope, _Yes }; template int __CRTDECL _Getloctxt( diff --git a/stl/inc/xloctime b/stl/inc/xloctime index 6edfeb10649..d812c1b5743 100644 --- a/stl/inc/xloctime +++ b/stl/inc/xloctime @@ -326,7 +326,7 @@ protected: virtual _InIt __CLR_OR_THIS_CALL do_get_weekday(_InIt _First, _InIt _Last, ios_base&, ios_base::iostate& _State, tm* _Pt) const { // get weekday from [_First, _Last) into _Pt - int _Num = _Getloctxt(_First, _Last, 0, _Days, _Case_sensitive::_No); + int _Num = _Getloctxt(_First, _Last, 0, _Days, _Case_sensitive::_Nope); if (_Num < 0) { _State |= ios_base::failbit; } else { @@ -338,7 +338,7 @@ protected: virtual _InIt __CLR_OR_THIS_CALL do_get_monthname(_InIt _First, _InIt _Last, ios_base&, ios_base::iostate& _State, tm* _Pt) const { // get month from [_First, _Last) into _Pt - int _Num = _Getloctxt(_First, _Last, 0, _Months, _Case_sensitive::_No); + int _Num = _Getloctxt(_First, _Last, 0, _Months, _Case_sensitive::_Nope); if (_Num < 0) { _State |= ios_base::failbit; @@ -444,7 +444,7 @@ protected: break; case 'p': - _Ans = _Getloctxt(_First, _Last, 0, ":AM:am:PM:pm", _Case_sensitive::_No); + _Ans = _Getloctxt(_First, _Last, 0, ":AM:am:PM:pm", _Case_sensitive::_Nope); if (_Ans < 0) { _State |= ios_base::failbit; } else if (1 < _Ans) {