Skip to content

Commit

Permalink
You can make classic .cpp definitions constexpr lmao
Browse files Browse the repository at this point in the history
  • Loading branch information
lhecker committed Feb 19, 2024
1 parent 1a7c10a commit 081901c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/atlas/CustomGlyphs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ constexpr bool Powerline_IsMapped(char32_t codepoint)
return codepoint >= Powerline_FirstChar && codepoint < (Powerline_FirstChar + Powerline_CharCount);
}

bool CustomGlyphs::IsCustomGlyph(char32_t codepoint) noexcept
constexpr bool CustomGlyphs::IsCustomGlyph(char32_t codepoint) noexcept
{
return BoxDrawing_IsMapped(codepoint) || Powerline_IsMapped(codepoint);
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/atlas/CustomGlyphs.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Microsoft::Console::Render::Atlas::CustomGlyphs
{
bool IsCustomGlyph(char32_t codepoint) noexcept;
constexpr bool IsCustomGlyph(char32_t codepoint) noexcept;
void DrawCustomGlyph(ID2D1Factory* factory, ID2D1DeviceContext* renderTarget, ID2D1SolidColorBrush* brush, const D2D1_RECT_F& rect, char32_t codepoint);

// This is just an extra. It's not actually implemented as part of CustomGlyphs.cpp.
Expand Down

0 comments on commit 081901c

Please sign in to comment.