mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
20 lines
534 B
C++
20 lines
534 B
C++
|
#include "util/rapidjson-helpers.hpp"
|
||
|
|
||
|
namespace chatterino {
|
||
|
namespace rj {
|
||
|
|
||
|
void addMember(rapidjson::Value &obj, const char *key, rapidjson::Value &&value,
|
||
|
rapidjson::Document::AllocatorType &a)
|
||
|
{
|
||
|
obj.AddMember(rapidjson::Value(key, a).Move(), value, a);
|
||
|
}
|
||
|
|
||
|
void addMember(rapidjson::Value &obj, const char *key, rapidjson::Value &value,
|
||
|
rapidjson::Document::AllocatorType &a)
|
||
|
{
|
||
|
obj.AddMember(rapidjson::Value(key, a).Move(), value.Move(), a);
|
||
|
}
|
||
|
|
||
|
} // namespace rj
|
||
|
} // namespace chatterino
|