From f8503c78763b634ba3e82ac49f42b80a47849629 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 9 Jan 2018 19:20:18 +0900 Subject: 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. --- room.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'room.cpp') 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); } } -- cgit v1.2.3