From 58b2501aeecf2c169fd1f583dca292169568b5fa Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Sun, 26 Dec 2021 09:29:00 +0100 Subject: Connection: Simplify room/user factory code There's no need to return lambdas where pointers to specialised function templates would work just fine. --- lib/connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/connection.cpp') diff --git a/lib/connection.cpp b/lib/connection.cpp index 25219def..8d1c80f1 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -1513,8 +1513,8 @@ room_factory_t Connection::roomFactory() { return _roomFactory; } user_factory_t Connection::userFactory() { return _userFactory; } -room_factory_t Connection::_roomFactory = defaultRoomFactory<>(); -user_factory_t Connection::_userFactory = defaultUserFactory<>(); +room_factory_t Connection::_roomFactory = defaultRoomFactory<>; +user_factory_t Connection::_userFactory = defaultUserFactory<>; QByteArray Connection::generateTxnId() const { -- cgit v1.2.3