diff options
author | Max Kellermann <max@musicpd.org> | 2020-02-01 13:59:55 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-02-01 14:02:43 +0100 |
commit | bc6eca2115d8d333eed61d23a01958926bbd7a9c (patch) | |
tree | f817a3c9779566c18157d01595db293dd63a70e1 /src/archive | |
parent | 72ec641f0d5a33de882a05a53e2f3a3b74226eb3 (diff) |
*: add `explicit`
Diffstat (limited to 'src/archive')
-rw-r--r-- | src/archive/plugins/Iso9660ArchivePlugin.cxx | 2 | ||||
-rw-r--r-- | src/archive/plugins/ZzipArchivePlugin.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/archive/plugins/Iso9660ArchivePlugin.cxx b/src/archive/plugins/Iso9660ArchivePlugin.cxx index 2a63b2505..eb76cc228 100644 --- a/src/archive/plugins/Iso9660ArchivePlugin.cxx +++ b/src/archive/plugins/Iso9660ArchivePlugin.cxx @@ -62,7 +62,7 @@ class Iso9660ArchiveFile final : public ArchiveFile { std::shared_ptr<Iso9660> iso; public: - Iso9660ArchiveFile(std::shared_ptr<Iso9660> &&_iso) + explicit Iso9660ArchiveFile(std::shared_ptr<Iso9660> &&_iso) :iso(std::move(_iso)) {} /** diff --git a/src/archive/plugins/ZzipArchivePlugin.cxx b/src/archive/plugins/ZzipArchivePlugin.cxx index 7b60ab36f..bb1776379 100644 --- a/src/archive/plugins/ZzipArchivePlugin.cxx +++ b/src/archive/plugins/ZzipArchivePlugin.cxx @@ -54,7 +54,7 @@ class ZzipArchiveFile final : public ArchiveFile { std::shared_ptr<ZzipDir> dir; public: - ZzipArchiveFile(std::shared_ptr<ZzipDir> &&_dir) + explicit ZzipArchiveFile(std::shared_ptr<ZzipDir> &&_dir) :dir(std::move(_dir)) {} void Visit(ArchiveVisitor &visitor) override; |