From 6166c9daf2bf5bc280125d602a7bd372043a58f4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 14 Jul 2020 00:30:41 +0100 Subject: fix(3p/nix/libexpr): Remove default & copy constructors for VectorBindings Paired-With: Luke Granger-Brown Paired-With: Vincent Ambo Paired-With: Perry Lorier Change-Id: Ief2e59d461452ce599abc63f6ebcfa07a7062491 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1161 Tested-by: BuildkiteCI Reviewed-by: lukegb --- third_party/nix/src/libexpr/attr-set.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'third_party/nix/src/libexpr') diff --git a/third_party/nix/src/libexpr/attr-set.cc b/third_party/nix/src/libexpr/attr-set.cc index 5ef63a129cdc..31b5bdcef3b1 100644 --- a/third_party/nix/src/libexpr/attr-set.cc +++ b/third_party/nix/src/libexpr/attr-set.cc @@ -131,7 +131,6 @@ void BTreeBindings::merge(Bindings& other) { class VectorBindings : public Bindings { public: - VectorBindings() {}; VectorBindings(size_t capacity) : attributes_() { attributes_.reserve(capacity); }; @@ -145,6 +144,8 @@ class VectorBindings : public Bindings { void merge(Bindings& other) override; [[deprecated]] virtual std::vector lexicographicOrder() override; + VectorBindings(VectorBindings&) = delete; + private: AttributeVector attributes_; }; -- cgit 1.4.1