Fix some lint/style error
Test: th
Change-Id: I57a36f8f6254d3e57a4787f1a7d3cc3368bbd7a7
diff --git a/common/scoped_task_id.h b/common/scoped_task_id.h
index 5c89935..91a2986 100644
--- a/common/scoped_task_id.h
+++ b/common/scoped_task_id.h
@@ -31,6 +31,10 @@
using MessageLoop = brillo::MessageLoop;
public:
+ // Move only type similar to unique_ptr.
+ ScopedTaskId(const ScopedTaskId&) = delete;
+ ScopedTaskId& operator=(const ScopedTaskId&) = delete;
+
constexpr ScopedTaskId() = default;
constexpr ScopedTaskId(ScopedTaskId&& other) noexcept {
@@ -86,8 +90,6 @@
}
private:
- ScopedTaskId(const ScopedTaskId&) = delete;
- ScopedTaskId& operator=(const ScopedTaskId&) = delete;
template <typename Callable>
[[nodiscard]] bool PostTask(const base::Location& from_here,
Callable&& callback,