Skip to content

Commit

Permalink
fixed more SonarQube findings
Browse files Browse the repository at this point in the history
  • Loading branch information
vividos committed Nov 12, 2020
1 parent 85c89da commit 30f9d07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/include/ulib/thread/MutexLock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ class MutexLock
}

/// move ctor; moves an already locked mutex to this object
MutexLock(MutexLock&& lock)
MutexLock(MutexLock&& lock) noexcept
:m_mutex(std::move(lock.m_mutex))
{
}

/// move assignment operator
MutexLock& operator=(MutexLock&& lock)
MutexLock& operator=(MutexLock&& lock) noexcept
{
m_mutex = std::move(lock.m_mutex);
}
Expand Down Expand Up @@ -63,13 +63,13 @@ class MutexTryLock
}

/// move ctor; moves an already locked mutex to this object
MutexTryLock(MutexTryLock&& lock)
MutexTryLock(MutexTryLock&& lock) noexcept
:m_mutex(std::move(lock.m_mutex))
{
}

/// move assignment operator
MutexTryLock& operator=(MutexTryLock&& lock)
MutexTryLock& operator=(MutexTryLock&& lock) noexcept
{
m_mutex = std::move(lock.m_mutex);
}
Expand Down Expand Up @@ -108,13 +108,13 @@ class MutexUnLocker
}

/// move ctor; moves an already locked mutex to this object
MutexUnLocker(MutexUnLocker&& lock)
MutexUnLocker(MutexUnLocker&& lock) noexcept
:m_mutex(std::move(lock.m_mutex))
{
}

/// move assignment operator
MutexUnLocker& operator=(MutexUnLocker&& lock)
MutexUnLocker& operator=(MutexUnLocker&& lock) noexcept
{
m_mutex = std::move(lock.m_mutex);
}
Expand Down

0 comments on commit 30f9d07

Please sign in to comment.