Skip to content

Commit f7c2a73

Browse files
committed
track_obj_functor: Make the constructor explicit.
Because it can take just one argument. Noticed by clang-tidy.
1 parent 3026ef7 commit f7c2a73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sigc++/adaptors/track_obj.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class track_obj_functor : public adapts<T_functor>
7575
* @param func Functor.
7676
* @param obj Trackable objects.
7777
*/
78-
track_obj_functor(const T_functor& func, const T_obj&... obj)
78+
explicit track_obj_functor(const T_functor& func, const T_obj&... obj)
7979
: adapts<T_functor>(func), obj_(obj...)
8080
{
8181
}

0 commit comments

Comments
 (0)