Skip to content

Commit bce06ce

Browse files
committed
Fix noexcept audit issues
1 parent 7bd0b46 commit bce06ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/terminal/adapter/SixelParser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -712,20 +712,20 @@ void SixelParser::_fillImageBackgroundWhenScrolled()
712712
if (_filledBackgroundHeight && imageHeight > _filledBackgroundHeight) [[unlikely]]
713713
{
714714
_filledBackgroundHeight = (imageHeight + _cellSize.height - 1) / _cellSize.height * _cellSize.height;
715-
const auto additionalFillHeight = _filledBackgroundHeight.value() - _imageCursor.y;
715+
const auto additionalFillHeight = *_filledBackgroundHeight - _imageCursor.y;
716716
_resizeImageBuffer(additionalFillHeight);
717717
_fillImageBackground(additionalFillHeight);
718718
}
719719
}
720720

721-
void SixelParser::_decreaseFilledBackgroundHeight(const int decreasedHeight)
721+
void SixelParser::_decreaseFilledBackgroundHeight(const int decreasedHeight) noexcept
722722
{
723723
// Sometimes the top of the image buffer may be clipped (e.g. when the image
724724
// scrolls off the top of a margin area). When that occurs, our record of
725725
// the filled height will need to be decreased to account for the new start.
726726
if (_filledBackgroundHeight) [[unlikely]]
727727
{
728-
_filledBackgroundHeight = _filledBackgroundHeight.value() - decreasedHeight;
728+
_filledBackgroundHeight = *_filledBackgroundHeight - decreasedHeight;
729729
}
730730
}
731731

src/terminal/adapter/SixelParser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ namespace Microsoft::Console::VirtualTerminal
112112
void _fillImageBackground();
113113
void _fillImageBackground(const int backgroundHeight);
114114
void _fillImageBackgroundWhenScrolled();
115-
void _decreaseFilledBackgroundHeight(const int decreasedHeight);
115+
void _decreaseFilledBackgroundHeight(const int decreasedHeight) noexcept;
116116
void _writeToImageBuffer(const int sixelValue, const int repeatCount);
117117
void _eraseImageBufferRows(const int rowCount, const til::CoordType startRow = 0) noexcept;
118118
void _maybeFlushImageBuffer(const bool endOfSequence = false);

0 commit comments

Comments
 (0)