aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/json-to-value.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-01-04 18:24:42 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-01-04 18:24:42 +0100
commitcc08364315437bfd870363220373c48f64862e83 (patch)
tree0fa51a76c50ce0490f577525e97e043ab3c5c697 /src/libexpr/json-to-value.cc
parent6d9a6d2cc3a20c9047436d174c9f91a2223da220 (diff)
Remove non-method mkString()
Diffstat (limited to 'src/libexpr/json-to-value.cc')
-rw-r--r--src/libexpr/json-to-value.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libexpr/json-to-value.cc b/src/libexpr/json-to-value.cc
index 9ca5ac86d..3825ca9a9 100644
--- a/src/libexpr/json-to-value.cc
+++ b/src/libexpr/json-to-value.cc
@@ -113,8 +113,11 @@ public:
bool string(string_t & val)
{
- return handle_value<void(Value&, const char*)>(mkString, val.c_str());
+ rs->value(state).mkString(val);
+ rs->add();
+ return true;
}
+
#if NLOHMANN_JSON_VERSION_MAJOR >= 3 && NLOHMANN_JSON_VERSION_MINOR >= 8
bool binary(binary_t&)
{