Skip to content

Commit

Permalink
add missing functional header, and re-arrange AttribtueBuilder constr…
Browse files Browse the repository at this point in the history
…uctor init list
  • Loading branch information
cwaldren-ld committed Aug 15, 2024
1 parent 9498199 commit 717b35d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/common/include/launchdarkly/attributes_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AttributesBuilder final {
* @param key The key for the kind.
*/
AttributesBuilder(BuilderReturn& builder, std::string kind, std::string key)
: key_(std::move(key)), kind_(std::move(kind)), builder_(builder) {
: builder_(builder), kind_(std::move(kind)), key_(std::move(key)) {
}

/**
Expand All @@ -45,9 +45,9 @@ class AttributesBuilder final {
AttributesBuilder(BuilderReturn& builder,
std::string kind,
Attributes const& attributes)
: key_(attributes.Key()),
: builder_(builder),
kind_(std::move(kind)),
builder_(builder),
key_(attributes.Key()),
name_(attributes.Name()),
anonymous_(attributes.Anonymous()),
private_attributes_(attributes.PrivateAttributes()) {
Expand Down
1 change: 1 addition & 0 deletions libs/common/src/attributes_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <set>
#include <unordered_map>
#include <functional>

namespace launchdarkly {
template <>
Expand Down

0 comments on commit 717b35d

Please sign in to comment.