summaryrefslogtreecommitdiffstats
path: root/callmessage.cpp
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2020-04-09 16:39:32 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2020-04-09 18:26:04 +0200
commite57b4f75b55c2befad4f9944f43c8aa2310321b7 (patch)
tree4fe80cd71e3ecbc5344bf15e06336073cc99fb33 /callmessage.cpp
parent0ed292d3ccf93c889734960676a321d1166d3f66 (diff)
add missing overrides in ResponseMessage
The original message hierarchy rework patch is missing functionality which results in received replies being discarded. Basically, ResponseMessage class is missing the override required to match replies to the original calls. Bug-AGL: SPEC-3112 Fixes: 0ed292d3ccf9 (rework Message hierarchy) Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I39030ef212b2175a590deca02f9f9ff41bf7abf4
Diffstat (limited to 'callmessage.cpp')
-rw-r--r--callmessage.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/callmessage.cpp b/callmessage.cpp
index 4afb071..1dfa72e 100644
--- a/callmessage.cpp
+++ b/callmessage.cpp
@@ -49,8 +49,7 @@ QByteArray CallMessage::serialize(QJsonDocument::JsonFormat format)
array.append(m_request["api"].toString() + "/" + m_request["verb"].toString());
array.append(m_request["parameter"].toJsonValue());
- QJsonDocument jdoc;
- jdoc.setArray(array);
+ m_jdoc.setArray(array);
- return jdoc.toJson(format).data();
+ return m_jdoc.toJson(format).data();
}