mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Use std::as_const (C++17 feature)
This commit is contained in:
@@ -139,7 +139,7 @@ namespace BlackMisc
|
||||
|
||||
void CSimpleCommandParser::registerCommand(const CSimpleCommandParser::CommandHtmlHelp &command)
|
||||
{
|
||||
for (const CommandHtmlHelp &help : as_const(s_commands))
|
||||
for (const CommandHtmlHelp &help : std::as_const(s_commands))
|
||||
{
|
||||
// avoid duplicates
|
||||
if (help.command == command.command) { return; }
|
||||
|
||||
Reference in New Issue
Block a user