From 173b84c8ffa82ae3f010e35cf9a62d8ab12086c3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 14 Apr 2021 23:05:42 -0400 Subject: [PATCH] log/backend: Correct order of const in copy constructor Follows our predominant coding style. Also explicitly specifies the move constructor/assignment operator as well. --- src/common/logging/backend.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index cf955b093..9f99b6a5f 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -38,8 +38,11 @@ public: return backend; } - Impl(Impl const&) = delete; - const Impl& operator=(Impl const&) = delete; + Impl(const Impl&) = delete; + Impl& operator=(const Impl&) = delete; + + Impl(Impl&&) = delete; + Impl& operator=(Impl&&) = delete; void PushEntry(Class log_class, Level log_level, const char* filename, unsigned int line_num, const char* function, std::string message) {