Commit 63be8a11 authored by Jakob Otto's avatar Jakob Otto

Include review feedback

parent 4c19bd6a
...@@ -75,8 +75,7 @@ public: ...@@ -75,8 +75,7 @@ public:
behavior operator()(local_actor* self) final { behavior operator()(local_actor* self) final {
if (hook_ != nullptr) if (hook_ != nullptr)
hook_(self); hook_(self);
auto dptr = static_cast<Base*>(self); [[maybe_unused]] auto dptr = static_cast<Base*>(self);
CAF_IGNORE_UNUSED(dptr);
if constexpr (ReturnsBehavior) { if constexpr (ReturnsBehavior) {
auto unbox = [](auto x) -> behavior { return std::move(x.unbox()); }; auto unbox = [](auto x) -> behavior { return std::move(x.unbox()); };
if constexpr (args_empty) { if constexpr (args_empty) {
......
...@@ -70,7 +70,7 @@ T get_or(const settings& xs, string_view name, T default_value) { ...@@ -70,7 +70,7 @@ T get_or(const settings& xs, string_view name, T default_value) {
auto result = get_if<T>(&xs, name); auto result = get_if<T>(&xs, name);
if (result) if (result)
return std::move(*result); return std::move(*result);
return std::move(default_value); return default_value;
} }
CAF_CORE_EXPORT std::string CAF_CORE_EXPORT std::string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment