Remove mxs::Closer<json_t*>
As std::unique_ptr can now be used with a json_t, there's no need for the closer.
This commit is contained in:
@ -1331,7 +1331,7 @@ auto_ptr<MaskingRules> MaskingRules::load(const char* zPath)
|
||||
|
||||
if (pRoot)
|
||||
{
|
||||
Closer<json_t*> root(pRoot);
|
||||
std::unique_ptr<json_t> root(pRoot);
|
||||
|
||||
sRules = create_from(root.get());
|
||||
}
|
||||
@ -1360,7 +1360,7 @@ auto_ptr<MaskingRules> MaskingRules::parse(const char* zJson)
|
||||
|
||||
if (pRoot)
|
||||
{
|
||||
Closer<json_t*> root(pRoot);
|
||||
std::unique_ptr<json_t> root(pRoot);
|
||||
|
||||
sRules = create_from(root.get());
|
||||
}
|
||||
|
Reference in New Issue
Block a user