Просмотр исходного кода

log/backend: Correct order of const in copy constructor

Follows our predominant coding style. Also explicitly specifies the move
constructor/assignment operator as well.
Lioncash 5 лет назад
Родитель
Сommit
2a341c9969
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      src/common/logging/backend.cpp

+ 5 - 2
src/common/logging/backend.cpp

@@ -37,8 +37,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) {