From 16c38c438f59c18142c1ca634d848816885f3e42 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 19 May 2021 17:36:40 +0200 Subject: [PATCH] fs/Glob: use defaulted move constructor --- src/fs/Glob.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs/Glob.hxx b/src/fs/Glob.hxx index c7d11c329..7c33af782 100644 --- a/src/fs/Glob.hxx +++ b/src/fs/Glob.hxx @@ -46,8 +46,8 @@ public: explicit Glob(const char *_pattern) :pattern(_pattern) {} - Glob(Glob &&other) - :pattern(std::move(other.pattern)) {} + Glob(Glob &&other) noexcept = default; + Glob &operator=(Glob &&other) noexcept = default; gcc_pure bool Check(const char *name_fs) const noexcept {