projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang-tidy: add Chrome-inspired checks
[lttng-tools.git]
/
src
/
common
/
pthread-lock.hpp
diff --git
a/src/common/pthread-lock.hpp
b/src/common/pthread-lock.hpp
index d19e3f3fbeb9ba066c19494ce209191859d2b495..824b2f2a91ce03cacedaab5bf6d72c3fb2f8660e 100644
(file)
--- a/
src/common/pthread-lock.hpp
+++ b/
src/common/pthread-lock.hpp
@@
-26,7
+26,7
@@
namespace details {
*/
class mutex {
public:
*/
class mutex {
public:
- mutex(pthread_mutex_t& mutex_p) : _mutex{mutex_p}
+
explicit
mutex(pthread_mutex_t& mutex_p) : _mutex{mutex_p}
{
}
{
}
@@
-76,7
+76,7
@@
private:
*/
class lock_guard {
public:
*/
class lock_guard {
public:
- lock_guard(pthread_mutex_t& mutex) : _mutex{mutex}, _guard(_mutex)
+
explicit
lock_guard(pthread_mutex_t& mutex) : _mutex{mutex}, _guard(_mutex)
{
}
{
}
This page took
0.022876 seconds
and
4
git commands to generate.