[libsigcplusplus/variadic_mem_fun3: 98/148] slot/slot_base: Make some API private.



commit 406b0ec27ba77efdead4b393c216c94d9492357f
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 3 12:25:59 2016 +0100

    slot/slot_base: Make some API private.

 sigc++/functors/slot.h      |    3 +++
 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 9e6ef47..b69e678 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_;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]