Update to latest settings library version

This commit is contained in:
Rasmus Karlsson
2018-11-03 13:00:07 +01:00
parent 9ced50e94e
commit ac4a496a06
36 changed files with 373 additions and 374 deletions
+6 -8
View File
@@ -3,7 +3,7 @@
#include "util/RapidJsonSerializeQString.hpp"
#include <rapidjson/document.h>
#include <pajlada/settings/serialize.hpp>
#include <pajlada/serialize.hpp>
#include <cassert>
#include <string>
@@ -24,8 +24,7 @@ namespace rj {
{
assert(obj.IsObject());
addMember(obj, key, pajlada::Settings::Serialize<Type>::get(value, a),
a);
addMember(obj, key, pajlada::Serialize<Type>::get(value, a), a);
}
template <>
@@ -45,8 +44,7 @@ namespace rj {
auto &a = obj.GetAllocator();
addMember(obj, key, pajlada::Settings::Serialize<Type>::get(value, a),
a);
addMember(obj, key, pajlada::Serialize<Type>::get(value, a), a);
}
template <>
@@ -66,7 +64,7 @@ namespace rj {
{
assert(arr.IsArray());
arr.PushBack(pajlada::Settings::Serialize<Type>::get(value, a), a);
arr.PushBack(pajlada::Serialize<Type>::get(value, a), a);
}
template <typename Type>
@@ -88,7 +86,7 @@ namespace rj {
}
bool error = false;
out = pajlada::Settings::Deserialize<Type>::get(obj[key], &error);
out = pajlada::Deserialize<Type>::get(obj[key], &error);
return !error;
}
@@ -97,7 +95,7 @@ namespace rj {
bool getSafe(const rapidjson::Value &value, Type &out)
{
bool error = false;
out = pajlada::Settings::Deserialize<Type>::get(value, &error);
out = pajlada::Deserialize<Type>::get(value, &error);
return !error;
}