C26455, default constructor may not throw. Mark noexcept
. (Trivial cases.)
This commit is contained in:
parent
cd144e98c6
commit
e14a59a1b6
|
@ -11,7 +11,7 @@
|
|||
|
||||
static constexpr TextAttribute InvalidTextAttribute{ INVALID_COLOR, INVALID_COLOR };
|
||||
|
||||
OutputCell::OutputCell() :
|
||||
OutputCell::OutputCell() noexcept :
|
||||
_text{},
|
||||
_dbcsAttribute{},
|
||||
_textAttribute{ InvalidTextAttribute },
|
||||
|
|
|
@ -34,7 +34,7 @@ class InvalidCharInfoConversionException : public std::exception
|
|||
class OutputCell final
|
||||
{
|
||||
public:
|
||||
OutputCell();
|
||||
OutputCell() noexcept;
|
||||
|
||||
OutputCell(const std::wstring_view charData,
|
||||
const DbcsAttribute dbcsAttribute,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
// Routine Description:
|
||||
// - Constucts an empty in-memory region for holding output buffer cell data.
|
||||
OutputCellRect::OutputCellRect() :
|
||||
OutputCellRect::OutputCellRect() noexcept :
|
||||
_rows(0),
|
||||
_cols(0)
|
||||
{
|
||||
|
|
|
@ -29,7 +29,7 @@ Revision History:
|
|||
class OutputCellRect final
|
||||
{
|
||||
public:
|
||||
OutputCellRect();
|
||||
OutputCellRect() noexcept;
|
||||
OutputCellRect(const size_t rows, const size_t cols);
|
||||
|
||||
gsl::span<OutputCell> GetRow(const size_t row);
|
||||
|
|
|
@ -47,7 +47,7 @@ public:
|
|||
using key_type = typename COORD;
|
||||
using mapped_type = typename std::vector<wchar_t>;
|
||||
|
||||
UnicodeStorage();
|
||||
UnicodeStorage() noexcept;
|
||||
|
||||
const mapped_type& GetText(const key_type key) const;
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ namespace Microsoft::Console::Render
|
|||
// A single contiguous run of characters containing the same analysis results.
|
||||
struct Run
|
||||
{
|
||||
Run() :
|
||||
Run() noexcept :
|
||||
textStart(),
|
||||
textLength(),
|
||||
glyphStart(),
|
||||
|
@ -108,7 +108,7 @@ namespace Microsoft::Console::Render
|
|||
// Single text analysis run, which points to the next run.
|
||||
struct LinkedRun : Run
|
||||
{
|
||||
LinkedRun() :
|
||||
LinkedRun() noexcept :
|
||||
nextRunIndex(0)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ static_assert(sizeof(unsigned int) == sizeof(wchar_t) * 2,
|
|||
class CodepointWidthDetector final
|
||||
{
|
||||
public:
|
||||
CodepointWidthDetector() = default;
|
||||
CodepointWidthDetector() noexcept = default;
|
||||
CodepointWidthDetector(const CodepointWidthDetector&) = delete;
|
||||
CodepointWidthDetector(CodepointWidthDetector&&) = delete;
|
||||
~CodepointWidthDetector() = default;
|
||||
|
|
Loading…
Reference in a new issue