summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common/blob_tree.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-04 11:21:11 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-04 16:05:08 +0200
commit74f53b444853850144c3e63593f83c424e84a768 (patch)
tree6bd2ca1c22f368c1f7c1b121ce205446a136fa45 /src/buildtool/execution_api/common/blob_tree.hpp
parentce0f5420e60c4807cca3f57131ad24df8a6b9b4b (diff)
downloadjustbuild-74f53b444853850144c3e63593f83c424e84a768.tar.gz
Mark more constructors 'explicit'
Since c++17 the 'explicit' keyword has use also for constructors with more than one argument and it is recommended to use it by default whereever implicit conversions are not expected bahaviour.
Diffstat (limited to 'src/buildtool/execution_api/common/blob_tree.hpp')
-rw-r--r--src/buildtool/execution_api/common/blob_tree.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/common/blob_tree.hpp b/src/buildtool/execution_api/common/blob_tree.hpp
index ad462aab..25d0f560 100644
--- a/src/buildtool/execution_api/common/blob_tree.hpp
+++ b/src/buildtool/execution_api/common/blob_tree.hpp
@@ -33,7 +33,7 @@ using BlobTreePtr = gsl::not_null<std::shared_ptr<BlobTree>>;
/// upload.
class BlobTree {
public:
- BlobTree(ArtifactBlob blob, std::vector<BlobTreePtr> nodes)
+ explicit BlobTree(ArtifactBlob blob, std::vector<BlobTreePtr> nodes)
: blob_{std::move(blob)}, nodes_{std::move(nodes)} {}
[[nodiscard]] auto Blob() const noexcept -> ArtifactBlob { return blob_; }