Skip to content

Commit

Permalink
operator= must return a value ;)
Browse files Browse the repository at this point in the history
Plus some pedantic header inclusion
  • Loading branch information
CarlosNihelton committed Nov 7, 2023
1 parent 812a434 commit 461742f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions msix/ubuntu-pro-agent-launcher/console.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#include <initializer_list>
#include <optional>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>

namespace up4w {
// An RAII wrapper around the PROCESS_INFORMATION structure to ease preventing
Expand All @@ -19,6 +21,7 @@ struct Process : PROCESS_INFORMATION {
hThread = std::exchange(other.hThread, nullptr);
dwProcessId = std::exchange(other.dwProcessId, 0);
dwThreadId = std::exchange(other.dwThreadId, 0);
return *this;
}
Process() noexcept {
hProcess = nullptr;
Expand Down

0 comments on commit 461742f

Please sign in to comment.