aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-09 19:20:18 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-12 22:09:10 +0900
commitf8503c78763b634ba3e82ac49f42b80a47849629 (patch)
treea7c320084547a4e2254294b82188400bf545deae
parent8fb9e3560ebf24ed6b697e3142a4fc7c6bd23393 (diff)
downloadlibquotient-f8503c78763b634ba3e82ac49f42b80a47849629.tar.gz
libquotient-f8503c78763b634ba3e82ac49f42b80a47849629.zip
Qualify a bind() invocation with 'std::'; use an actual value instead of a placeholder
An unqualified bind() seems to upset some build environments; also, use a User* value at hand instead of binding it at the moment of signal-slot triggering.
-rw-r--r--room.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/room.cpp b/room.cpp
index b647a506..28107228 100644
--- a/room.cpp
+++ b/room.cpp
@@ -510,7 +510,7 @@ void Room::Private::addMember(User *u)
{
insertMemberIntoMap(u);
connect(u, &User::nameChanged, q,
- bind(&Private::renameMember, this, _1, _2));
+ std::bind(&Private::renameMember, this, u, _2));
emit q->userAdded(u);
}
}