summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-09-23 19:11:48 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-09-23 19:11:48 +0200
commit60d340be19aa4370620181b56a6d4ccdcfa014dc (patch)
treeaa2b5dc37de50405b5ef6628dcffe1f06de08110 /src/xmpp
parent2380a84ba5d304861cd21eb3a2e57d76e32536a0 (diff)
downloadbiboumi-60d340be19aa4370620181b56a6d4ccdcfa014dc.tar.gz
biboumi-60d340be19aa4370620181b56a6d4ccdcfa014dc.tar.bz2
biboumi-60d340be19aa4370620181b56a6d4ccdcfa014dc.tar.xz
biboumi-60d340be19aa4370620181b56a6d4ccdcfa014dc.zip
TIL std::string::end and std::string::begin…
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/biboumi_adhoc_commands.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xmpp/biboumi_adhoc_commands.cpp b/src/xmpp/biboumi_adhoc_commands.cpp
index d9162d7..19e6a71 100644
--- a/src/xmpp/biboumi_adhoc_commands.cpp
+++ b/src/xmpp/biboumi_adhoc_commands.cpp
@@ -264,8 +264,7 @@ void ConfigureIrcServerStep2(XmppComponent*, AdhocSession& session, XmlNode& com
{
auto username = value->get_inner();
// The username must not contain spaces
- std::replace(&username[0], &username[username.size() - 1],
- ' ', '_');
+ std::replace(username.begin(), username.end(), ' ', '_');
options.username = username;
}