]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Change all occurrences of plain sort() to std::sort()
authorAttila Molnar <attilamolnar@hush.com>
Sun, 22 Jun 2014 11:34:33 +0000 (13:34 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Sun, 22 Jun 2014 11:34:33 +0000 (13:34 +0200)
src/coremods/core_info/cmd_commands.cpp
src/modules/m_spanningtree/capab.cpp
src/server.cpp

index 3a892c5c4bffb260cb5cb5a80e207a6b4604b190..3ff6728d8b7d075aff6585f2d2e7c9b02fee9a41 100644 (file)
@@ -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");
index 5d87b157802223e9cfac4fd19932bd2f39263ae4..e242bcd4a2ad8b044c545338ce2e987e29ba3bdd 100644 (file)
@@ -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);
 }
 
index ab53692315dd33f8325738ce10001d9c6c16289e..66466fae94cbdbbd65e86566c1526b0370eee561 100644 (file)
@@ -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, ",");
        }