refactor: switch strings to string references

This commit is contained in:
k0t9i
2023-01-23 23:58:45 +04:00
parent 9592833ddf
commit e127d94902
9 changed files with 14 additions and 14 deletions

View File

@@ -14,11 +14,11 @@ namespace L2Bot::Domain::Serializers
const bool isContainer = false;
Node() = delete;
Node(const std::string name, const std::string value) :
Node(const std::string& name, const std::string& value) :
name(name), value(value)
{
}
Node(const std::string name, const std::vector<Node> children, const bool isArray = false) :
Node(const std::string& name, const std::vector<Node> children, const bool isArray = false) :
name(name), children(children), isArray(isArray), isContainer(true)
{
}