Skip to content

Commit

Permalink
A few PR comments. A constexpr here, a misleading comment there, and …
Browse files Browse the repository at this point in the history
…an extraneous local.
  • Loading branch information
miniksa committed Sep 9, 2019
1 parent d8ff47a commit 18bacfe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/buffer/out/OutputCell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,5 @@ void OutputCell::_setFromOutputCellView(const OutputCellView& cell)
_dbcsAttribute = cell.DbcsAttr();
_textAttribute = cell.TextAttr();
_behavior = cell.TextAttrBehavior();

const auto view = cell.Chars();
_text = view;
_text = cell.Chars();
}
2 changes: 1 addition & 1 deletion src/renderer/dx/DxRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#pragma hdrstop

static constexpr float POINTS_PER_INCH = 72.0f;
static std::wstring_view FALLBACK_FONT_FACE = L"Consolas";
static constexpr std::wstring_view FALLBACK_FONT_FACE = L"Consolas";
static constexpr std::wstring_view FALLBACK_LOCALE = L"en-us";

using namespace Microsoft::Console::Render;
Expand Down
4 changes: 2 additions & 2 deletions src/types/convert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static const WORD leftShiftScanCode = 0x2A;
size_t cchNeeded;
THROW_IF_FAILED(IntToSizeT(iTarget, &cchNeeded));

// Allocate ourselves space in a smart pointer.
// Allocate ourselves some space
std::wstring out;
out.resize(cchNeeded);

Expand Down Expand Up @@ -85,7 +85,7 @@ static const WORD leftShiftScanCode = 0x2A;
size_t cchNeeded;
THROW_IF_FAILED(IntToSizeT(iTarget, &cchNeeded));

// Allocate ourselves space in a smart pointer
// Allocate ourselves some space
std::string out;
out.resize(cchNeeded);

Expand Down

0 comments on commit 18bacfe

Please sign in to comment.