From 5f3bd722b64f1eb42686c3528372ef52b3057f89 Mon Sep 17 00:00:00 2001 From: Daniel <d.hornung@indiscale.com> Date: Mon, 3 Jun 2024 10:00:32 +0200 Subject: [PATCH] STY: Clang formatting --- include/caosdb/value.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/caosdb/value.h b/include/caosdb/value.h index 6b25bbb..1da6f1c 100644 --- a/include/caosdb/value.h +++ b/include/caosdb/value.h @@ -37,8 +37,8 @@ this->wrapped->mutable_list_values()->add_values()->SETTER(value); \ } \ if (values.empty()) { \ - this->wrapped->mutable_list_values()->add_values()->set_special_value \ - (ProtoSpecialValue::SPECIAL_VALUE_UNSPECIFIED); \ + this->wrapped->mutable_list_values()->add_values()->set_special_value( \ + ProtoSpecialValue::SPECIAL_VALUE_UNSPECIFIED); \ } \ } @@ -389,9 +389,9 @@ public: return !IsNull() && this->wrapped->value_case() == ValueCase::kListValues; } [[nodiscard]] inline auto GetAsVector() const noexcept -> const std::vector<ScalarValue> & { - if (!IsVector() || (this->wrapped->list_values().values(0).has_special_value() - && this->wrapped->list_values().values(0).special_value() - == ProtoSpecialValue::SPECIAL_VALUE_UNSPECIFIED)) { + if (!IsVector() || (this->wrapped->list_values().values(0).has_special_value() && + this->wrapped->list_values().values(0).special_value() == + ProtoSpecialValue::SPECIAL_VALUE_UNSPECIFIED)) { // create empty list static std::vector<ScalarValue> empty_values; return empty_values; -- GitLab