diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2018-10-31 21:02:12 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2018-10-31 21:02:12 +0000 |
commit | f056ae01a6e8bdcf510710b0fd49d3f55dc54b16 (patch) | |
tree | 4bd56aa1bc378b34cb67c3f0293d3bd606f1d76d /ahl-binding | |
parent | 760e96b8618a8cbf62ba3b3caf231c0720c1c616 (diff) | |
parent | 00340de676ba1cac9c43e2d0ba366e9a593581a4 (diff) |
Merge "Fix undefined role's state at construct"
Diffstat (limited to 'ahl-binding')
-rw-r--r-- | ahl-binding/role.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ahl-binding/role.hpp b/ahl-binding/role.hpp index 143a717..055a405 100644 --- a/ahl-binding/role.hpp +++ b/ahl-binding/role.hpp @@ -33,8 +33,8 @@ private: std::vector<interrupt_t> interrupts_; std::string device_uri_; - bool opened_; - + bool opened_ = false; + int apply_policy(afb_req_t req); void do_mute(afb_req_t, bool); @@ -45,14 +45,14 @@ public: explicit role_t(role_t&&) = default; ~role_t() = default; - + role_t& operator=(const role_t&) = default; role_t& operator=(role_t&&) = default; static role_t from_json(json_object* o); explicit role_t(json_object* j); - + role_t& operator<<(json_object* j); std::string uid() const; @@ -63,7 +63,7 @@ public: const std::vector<interrupt_t>& interrupts() const; std::string device_uri() const; bool opened() const; - + void uid(std::string v); void description(std::string v); void hal(std::string v); |