X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspstring.cpp;h=faf34be91aacacf16c377f2a6cfe1c837ba68d4c;hb=2ec7654267f8ad127653839ba9aaf369705e3026;hp=283c00d5b2fd7cfe458df77000ed55a96aea7597;hpb=35b70631f0532a5828b04a8e0c02092a285f331a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspstring.cpp b/src/inspstring.cpp index 283c00d5b..faf34be91 100644 --- a/src/inspstring.cpp +++ b/src/inspstring.cpp @@ -136,7 +136,6 @@ void TokenList::AddList(const std::string& tokenlist) else Add(token); } - } void TokenList::Add(const std::string& token) { @@ -206,12 +205,8 @@ void TokenList::Remove(const std::string& token) std::string TokenList::ToString() const { - std::string buffer(permissive ? "*" : "-*"); - for (insp::flat_set::const_iterator iter = tokens.begin(); iter != tokens.end(); ++iter) - { - buffer.push_back(' '); - buffer.append(*iter); - } + std::string buffer(permissive ? "* " : "-* "); + buffer.append(stdalgo::string::join(tokens)); return buffer; }