Skip to content

Commit

Permalink
Update wpiutil/src/main/native/cpp/FileLogger.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Blue <ryanzblue@gmail.com>
  • Loading branch information
Gold856 and rzblue committed Aug 24, 2024
1 parent b049a42 commit 07e3968
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wpiutil/src/main/native/cpp/FileLogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ FileLogger::FileLogger(std::string_view file,
}
FileLogger::FileLogger(FileLogger&& other)
#ifdef __linux__
: m_fileHandle{std::move(other.m_fileHandle)},
m_inotifyHandle{std::move(other.m_inotifyHandle)},
m_inotifyWatchHandle{std::move(other.m_inotifyWatchHandle)},
: m_fileHandle{std::exchange(other.m_fileHandle, -1)},
m_inotifyHandle{std::exchange(other.m_inotifyHandle, -1)},
m_inotifyWatchHandle{std::exchange(other.m_inotifyWatchHandle, -1)},
m_thread{std::move(other.m_thread)}
#endif
{
Expand Down

0 comments on commit 07e3968

Please sign in to comment.