Skip to content

Commit

Permalink
hstring --> constexpr std::wstring_view
Browse files Browse the repository at this point in the history
Co-authored-by: Dustin L. Howett <[email protected]>
  • Loading branch information
carlos-zamora and DHowett authored Oct 10, 2024
1 parent 4c96918 commit 12a6f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascadia/TerminalSettingsModel/CascadiaSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ void CascadiaSettings::_validateMediaResources()
// want to blow up if we fell back to the commandline and the
// commandline _isn't an icon_.
// GH #17943: "none" is a special value interpreted as "remove the icon"
static hstring HideIconValue{ L"none" };
static constexpr std::wstring_view HideIconValue{ L"none" };
if (const auto icon = profile.Icon(); icon.size() > 2 && icon != HideIconValue)
{
const auto iconPath{ wil::ExpandEnvironmentStringsW<std::wstring>(icon.c_str()) };
Expand Down

0 comments on commit 12a6f90

Please sign in to comment.