diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-03-03 12:25:59 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-03-03 12:25:59 +0100 |
commit | 17d7f65cf8480527104ad0b1cffe5917f7e52ab8 (patch) | |
tree | 0b6aa3e1ee290c2f6de7967c2727ac6b3e77f0f1 | |
parent | faa27446a1373462f864168787e1f03b3f5f317e (diff) | |
download | sigc++-17d7f65cf8480527104ad0b1cffe5917f7e52ab8.tar.gz |
slot/slot_base: Make some API private.
-rw-r--r-- | sigc++/functors/slot.h | 3 | ||||
-rw-r--r-- | sigc++/functors/slot_base.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sigc++/functors/slot.h b/sigc++/functors/slot.h index dfbc4eb..47a8972 100644 --- a/sigc++/functors/slot.h +++ b/sigc++/functors/slot.h @@ -20,8 +20,10 @@ namespace internal { template <class T_functor> struct typed_slot_rep : public slot_rep { +private: typedef typed_slot_rep<T_functor> self; +public: /* Use an adaptor type so that arguments can be passed as const references * through explicit template instantiation from slot_call#::call_it() */ typedef typename adaptor_trait<T_functor>::adaptor_type adaptor_type; @@ -53,6 +55,7 @@ struct typed_slot_rep : public slot_rep sigc::visit_each_type<trackable*>(slot_do_unbind(this), functor_); } +private: /** Detaches the stored functor from the other referred trackables and destroys it. * This does not destroy the base slot_rep object. */ diff --git a/sigc++/functors/slot_base.h b/sigc++/functors/slot_base.h index ef7cf3d..e32deab 100644 --- a/sigc++/functors/slot_base.h +++ b/sigc++/functors/slot_base.h @@ -80,11 +80,13 @@ struct SIGC_API slot_rep : public trackable typedef slot_rep* (*hook_dup)(slot_rep*); +private: /** Callback that makes a deep copy of the slot_rep object. * @return A deep copy of the slot_rep object. */ hook_dup dup_; +public: /** Callback of parent_. */ func_destroy_notify cleanup_; |