Applied project style to multiple files

This commit is contained in:
fourtf
2018-07-06 18:10:21 +02:00
parent 3993708164
commit 535c0616a3
26 changed files with 149 additions and 157 deletions
+2 -7
View File
@@ -10,9 +10,7 @@ template <>
struct Serialize<QString> {
static rapidjson::Value get(const QString &value, rapidjson::Document::AllocatorType &a)
{
rapidjson::Value ret(value.toUtf8(), a);
return ret;
return rapidjson::Value(value.toUtf8(), a);
}
};
@@ -27,10 +25,7 @@ struct Deserialize<QString> {
}
try {
const char *str = value.GetString();
auto strLen = value.GetStringLength();
return QString::fromUtf8(str, strLen);
return QString::fromUtf8(value.GetString(), value.GetStringLength());
} catch (const std::exception &) {
// int x = 5;
} catch (...) {