summaryrefslogtreecommitdiffstats
path: root/callmessage.cpp
diff options
context:
space:
mode:
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();
}