summaryrefslogtreecommitdiff
path: root/src/buildtool/common/tree.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-11 13:22:16 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-12 15:43:37 +0200
commit1e1758e8c30d30df0ebeefbada1e5a8f74d8a350 (patch)
treeb5b87ab3d7b61a0dc0e89e14e28af78293c4a423 /src/buildtool/common/tree.hpp
parent9362f6c426a6e10d0f77282364a0061ebf192375 (diff)
downloadjustbuild-1e1758e8c30d30df0ebeefbada1e5a8f74d8a350.tar.gz
Use static Create functions to construct ArtifactDescription
...instead of unobvious ctors relying on overload resolution.
Diffstat (limited to 'src/buildtool/common/tree.hpp')
-rw-r--r--src/buildtool/common/tree.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/common/tree.hpp b/src/buildtool/common/tree.hpp
index 6e066c75..e9d5ef84 100644
--- a/src/buildtool/common/tree.hpp
+++ b/src/buildtool/common/tree.hpp
@@ -51,7 +51,7 @@ class Tree {
}
[[nodiscard]] auto Output() const -> ArtifactDescription {
- return ArtifactDescription{id_};
+ return ArtifactDescription::CreateTree(id_);
}
[[nodiscard]] static auto FromJson(std::string const& id,