mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Avoid compiler warning with JSON disabled
This commit is contained in:
@@ -284,12 +284,14 @@ namespace BlackMisc
|
||||
static void serializeJson(QJsonObject &json, const Tu &tu, index_sequence<Is...>)
|
||||
{
|
||||
serializeJsonImpl(json, std::make_pair(std::get<Is>(tu).m_jsonName, std::get<Is>(tu).m_obj)...);
|
||||
Q_UNUSED(tu); // avoid compiler warning when all attributes are JSON disabled
|
||||
}
|
||||
|
||||
template <class Tu, size_t... Is>
|
||||
static void deserializeJson(const QJsonObject &json, Tu &tu, index_sequence<Is...>)
|
||||
{
|
||||
deserializeJsonImpl(json, std::make_pair(std::get<Is>(tu).m_jsonName, get_ref<Is>(tu))...);
|
||||
Q_UNUSED(tu); // avoid compiler warning when all attributes are JSON disabled
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user