Fix clang compilation error

Close #14559
This commit is contained in:
Helge Konetzka 2024-01-06 21:29:29 +01:00 committed by Don Ho
parent eb0922c223
commit 464967e26c
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ struct LangMenuItem final
LangMenuItem(LangType lt, int cmdID = 0, const std::wstring& langName = TEXT("")):
_langType(lt), _cmdID(cmdID), _langName(langName){};
bool operator<(const LangMenuItem& rhs)
bool operator<(const LangMenuItem& rhs) const
{
std::wstring lhs_lang(this->_langName.length(), ' '), rhs_lang(rhs._langName.length(), ' ');
std::transform(this->_langName.begin(), this->_langName.end(), lhs_lang.begin(), towlower);