diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-06-22 13:34:33 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-06-22 13:34:33 +0200 |
commit | 5043a2f83598baa3afba53201f690e6deac3eafd (patch) | |
tree | 6b98147395332e81245238b7d37344259e840d11 /src | |
parent | 0f3db84269dc029aa00d706a9821ab00b7ed0c85 (diff) |
Change all occurrences of plain sort() to std::sort()
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_info/cmd_commands.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/capab.cpp | 2 | ||||
-rw-r--r-- | src/server.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_info/cmd_commands.cpp b/src/coremods/core_info/cmd_commands.cpp index 3a892c5c4..3ff6728d8 100644 --- a/src/coremods/core_info/cmd_commands.cpp +++ b/src/coremods/core_info/cmd_commands.cpp @@ -45,7 +45,7 @@ CmdResult CommandCommands::Handle (const std::vector<std::string>&, User *user) RPL_COMMANDS, user->nick.c_str(), i->second->name.c_str(), src->ModuleSourceFile.c_str(), i->second->min_params, i->second->Penalty)); } - sort(list.begin(), list.end()); + std::sort(list.begin(), list.end()); for(unsigned int i=0; i < list.size(); i++) user->Write(list[i]); user->WriteNumeric(RPL_COMMANDSEND, ":End of COMMANDS list"); diff --git a/src/modules/m_spanningtree/capab.cpp b/src/modules/m_spanningtree/capab.cpp index 5d87b1578..e242bcd4a 100644 --- a/src/modules/m_spanningtree/capab.cpp +++ b/src/modules/m_spanningtree/capab.cpp @@ -69,7 +69,7 @@ static std::string BuildModeList(ModeType type) modes.push_back(mdesc); } } - sort(modes.begin(), modes.end()); + std::sort(modes.begin(), modes.end()); return irc::stringjoiner(modes); } diff --git a/src/server.cpp b/src/server.cpp index ab5369231..66466fae9 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -193,7 +193,7 @@ void ISupportManager::Build() std::map<std::string, std::string>::iterator extban = tokens.find("EXTBAN"); if (extban != tokens.end()) { - sort(extban->second.begin(), extban->second.end()); + std::sort(extban->second.begin(), extban->second.end()); extban->second.insert(0, ","); } |