diff options
author | Murray Cumming <murrayc@murrayc.com> | 2017-04-21 14:53:59 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2017-07-21 08:20:58 +0200 |
commit | f7c2a73eb240ee4e9d88047cbd9d82088e835932 (patch) | |
tree | 58c7c9378efdd772a00b6393c36d256957492f96 | |
parent | 3026ef7c4e70d8dcffe821f9064652446b44db41 (diff) | |
download | sigc++-f7c2a73eb240ee4e9d88047cbd9d82088e835932.tar.gz |
track_obj_functor: Make the constructor explicit.
Because it can take just one argument.
Noticed by clang-tidy.
-rw-r--r-- | sigc++/adaptors/track_obj.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sigc++/adaptors/track_obj.h b/sigc++/adaptors/track_obj.h index 9256011..4419ffb 100644 --- a/sigc++/adaptors/track_obj.h +++ b/sigc++/adaptors/track_obj.h @@ -75,7 +75,7 @@ public: * @param func Functor. * @param obj Trackable objects. */ - track_obj_functor(const T_functor& func, const T_obj&... obj) + explicit track_obj_functor(const T_functor& func, const T_obj&... obj) : adapts<T_functor>(func), obj_(obj...) { } |