refactoring: replace bool return type with RAII 46/202546/6
authorAdrian Szyndela <adrian.s@samsung.com>
Fri, 29 Mar 2019 14:18:05 +0000 (15:18 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Wed, 3 Apr 2019 07:05:57 +0000 (09:05 +0200)
commita26b097a67d4d03938793f96ea581cd5448fd3e0
tree2cda4c5188a65ba0e678a4312101ed7fddeeb609
parentef36f5bf78e7fb5c1d7e9e9584f8537593c4ea01
refactoring: replace bool return type with RAII

This changes return type of bus path resolving to shared_ptr<const char> from bool.
This is sufficient to carry all the needed information, and allows
removing of explicit free()s and gotos.

Change-Id: Ic05a734aea49439182fca4ea912086213a6cf91a
src/internal/transaction_guard.hpp
src/libdbuspolicy1.cpp