diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-09 19:20:18 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-12 22:09:10 +0900 |
commit | f8503c78763b634ba3e82ac49f42b80a47849629 (patch) | |
tree | a7c320084547a4e2254294b82188400bf545deae | |
parent | 8fb9e3560ebf24ed6b697e3142a4fc7c6bd23393 (diff) | |
download | libquotient-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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |