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:
Markus Mäkelä
2018-08-19 07:30:34 +03:00
parent 0a0623003e
commit 02ed338afa
5 changed files with 22 additions and 47 deletions

View File

@ -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());
}