mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 03:15:34 +08:00
Ref T267, allow to call "convertFromMemoizedJson", but also convert via "convertFromJson"
The variant convertFromMemoizedJson trait did already do something similar, calling "convertFromJson" if the memoized version is not avilable. Now the function also "decides" based on the passed data itself.
This commit is contained in:
@@ -286,7 +286,7 @@ namespace BlackMisc
|
||||
QJsonObject toMemoizedJson() const;
|
||||
|
||||
//! From compact JSON format.
|
||||
void convertFromMemoizedJson(const QJsonObject &json);
|
||||
void convertFromMemoizedJson(const QJsonObject &json, bool allowFallbackToJson);
|
||||
|
||||
//! Call convertFromMemoizedJson, catch any CJsonException that is thrown and return it as CStatusMessage.
|
||||
CStatusMessage convertFromMemoizedJsonNoThrow(const QJsonObject &json, const CLogCategoryList &categories, const QString &prefix);
|
||||
|
||||
Reference in New Issue
Block a user