aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-12-26 09:29:00 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-12-27 20:15:59 +0100
commit58b2501aeecf2c169fd1f583dca292169568b5fa (patch)
treed1f670a8771f45fd5a1dee57edaf4a6f7085a363 /lib/connection.cpp
parent53c494f1b9f273395caade35c93e3fb520d083ec (diff)
downloadlibquotient-58b2501aeecf2c169fd1f583dca292169568b5fa.tar.gz
libquotient-58b2501aeecf2c169fd1f583dca292169568b5fa.zip
Connection: Simplify room/user factory code
There's no need to return lambdas where pointers to specialised function templates would work just fine.
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp4
1 files changed, 2 insertions, 2 deletions
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
{