From 324d385b29979dee066a36250cfea9e030f24bfe Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 19 Jul 2020 17:59:44 +0100 Subject: refactor(3p/nix): Rename & undeprecate Bindings::lexicographicOrder The function is renamed to `SortedByKeys`, which is more descriptive, and annotated with a comment about what it is used for. The deprecation warning has been removed because this function is currently functionally required. Change-Id: I0ee3a76deff05f366feca9ddac8f38ab34bffbd0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1288 Tested-by: BuildkiteCI Reviewed-by: glittershark --- third_party/nix/src/libexpr/eval.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'third_party/nix/src/libexpr/eval.cc') diff --git a/third_party/nix/src/libexpr/eval.cc b/third_party/nix/src/libexpr/eval.cc index f35f56c83c7d..704a05b197ba 100644 --- a/third_party/nix/src/libexpr/eval.cc +++ b/third_party/nix/src/libexpr/eval.cc @@ -89,7 +89,7 @@ static void printValue(std::ostream& str, std::set& active, break; case tAttrs: { str << "{ "; - for (auto& i : v.attrs->lexicographicOrder()) { + for (auto& i : v.attrs->SortedByKeys()) { str << i->name << " = "; printValue(str, active, *i->value); str << "; "; -- cgit 1.4.1