aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/setroomstatejob.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-04 12:13:43 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-04 13:11:56 +0900
commit28a0d70164e2596d306521cd18d25c0e8c0b5336 (patch)
tree96d5f6c936e2906800388b7b45ec3d57ffad04a4 /lib/jobs/setroomstatejob.h
parent844eddfffb8e1ee5d213371299dee0d15614bef8 (diff)
downloadlibquotient-28a0d70164e2596d306521cd18d25c0e8c0b5336.tar.gz
libquotient-28a0d70164e2596d306521cd18d25c0e8c0b5336.zip
EvT::TypeId: Use a member function instead of a variable
The latter one causes linkage errors when used from a template method (but not from a template class, puzzlingly).
Diffstat (limited to 'lib/jobs/setroomstatejob.h')
-rw-r--r--lib/jobs/setroomstatejob.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jobs/setroomstatejob.h b/lib/jobs/setroomstatejob.h
index b7e6d4a1..36047667 100644
--- a/lib/jobs/setroomstatejob.h
+++ b/lib/jobs/setroomstatejob.h
@@ -36,7 +36,7 @@ namespace QMatrixClient
const EvT& event)
: BaseJob(HttpVerb::Put, "SetRoomStateJob",
QStringLiteral("_matrix/client/r0/rooms/%1/state/%2/%3")
- .arg(roomId, EvT::TypeId, stateKey),
+ .arg(roomId, EvT::typeId(), stateKey),
Query(),
Data(event.toJson()))
{ }
@@ -48,7 +48,7 @@ namespace QMatrixClient
SetRoomStateJob(const QString& roomId, const EvT& event)
: BaseJob(HttpVerb::Put, "SetRoomStateJob",
QStringLiteral("_matrix/client/r0/rooms/%1/state/%2")
- .arg(roomId, EvT::TypeId),
+ .arg(roomId, EvT::typeId()),
Query(),
Data(event.toJson()))
{ }