Commit bd319b91 authored by Romain Vimont's avatar Romain Vimont Committed by Thomas Guillem
Browse files

vlc_shared_data_ptr: make operator bool() explicit



Like unique_ptr, make the operator bool() explicit, so that it is only
called implicitly when the value may be "contextually converted to bool"
(if, while, etc.).
Suggested-by: Filip Roséen's avatarFilip Roséen <filip@atch.se>
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent c7bffb3c
......@@ -207,7 +207,7 @@ public:
return !(*this == other);
}
operator bool() const
explicit operator bool() const
{
return ptr;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment