summaryrefslogtreecommitdiffstats
path: root/src/Server/RequestHandlers
diff options
context:
space:
mode:
Diffstat (limited to 'src/Server/RequestHandlers')
-rw-r--r--src/Server/RequestHandlers/ConnectionRequestHandlerGroup.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Server/RequestHandlers/ConnectionRequestHandlerGroup.cpp b/src/Server/RequestHandlers/ConnectionRequestHandlerGroup.cpp
index 7607171..2a091e6 100644
--- a/src/Server/RequestHandlers/ConnectionRequestHandlerGroup.cpp
+++ b/src/Server/RequestHandlers/ConnectionRequestHandlerGroup.cpp
@@ -37,17 +37,17 @@ void ConnectionRequestHandlerGroup::handleAuthMethodRequest(boost::shared_ptr<co
Common::XmlPacket::List *list = ret->createList("methods");
- const std::vector<std::string> &methods = application->getAuthManager()->getMethods();
+ std::set<std::string> methods = application->getAuthManager()->getMethods();
- for(std::vector<std::string>::const_iterator method = methods.begin(); method != methods.end(); ++method) {
+ for(std::set<std::string>::iterator method = methods.begin(); method != methods.end(); ++method) {
Common::XmlPacket::List::iterator entry = list->addEntry();
entry->set("name", *method);
Common::XmlPacket::List *subList = entry->createList("subMethods");
- const std::vector<std::string> &subMethods = application->getAuthManager()->getSubMethods(*method);
+ std::vector<std::string> subMethods = application->getAuthManager()->getSubMethods(*method);
- for(std::vector<std::string>::const_iterator subMethod = subMethods.begin(); subMethod != subMethods.end(); ++subMethod) {
+ for(std::vector<std::string>::iterator subMethod = subMethods.begin(); subMethod != subMethods.end(); ++subMethod) {
Common::XmlPacket::List::iterator subEntry = subList->addEntry();
subEntry->set("name", *subMethod);