aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/value-to-xml.cc
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2020-12-17 14:45:45 +0100
committerSilvan Mosberger <contact@infinisil.com>2020-12-17 14:45:45 +0100
commit12e65078ef5c511196c9e48f7fdf71f6c0e5c89f (patch)
tree1d2f6489422eb51bcb55b338125e2efab7faefed /src/libexpr/value-to-xml.cc
parentd67e02919c7f941615407dfd14cfdab6a28c4c26 (diff)
Rename Value::normalType() -> Value::type()
Diffstat (limited to 'src/libexpr/value-to-xml.cc')
-rw-r--r--src/libexpr/value-to-xml.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/value-to-xml.cc b/src/libexpr/value-to-xml.cc
index 26be07cff..7464455d8 100644
--- a/src/libexpr/value-to-xml.cc
+++ b/src/libexpr/value-to-xml.cc
@@ -58,7 +58,7 @@ static void printValueAsXML(EvalState & state, bool strict, bool location,
if (strict) state.forceValue(v);
- switch (v.normalType()) {
+ switch (v.type()) {
case nInt:
doc.writeEmptyElement("int", singletonAttrs("value", (format("%1%") % v.integer).str()));
@@ -92,14 +92,14 @@ static void printValueAsXML(EvalState & state, bool strict, bool location,
a = v.attrs->find(state.sDrvPath);
if (a != v.attrs->end()) {
if (strict) state.forceValue(*a->value);
- if (a->value->normalType() == nString)
+ if (a->value->type() == nString)
xmlAttrs["drvPath"] = drvPath = a->value->string.s;
}
a = v.attrs->find(state.sOutPath);
if (a != v.attrs->end()) {
if (strict) state.forceValue(*a->value);
- if (a->value->normalType() == nString)
+ if (a->value->type() == nString)
xmlAttrs["outPath"] = a->value->string.s;
}