~ps-jenkins/dbus-cpp/utopic-proposed

« back to all changes in this revision

Viewing changes to include/core/dbus/impl/object.h

  • Committer: CI bot
  • Author(s): thomas-voss
  • Date: 2014-08-08 02:05:40 UTC
  • mfrom: (71.1.1 dbus-cpp)
  • Revision ID: ps-jenkins@lists.canonical.com-20140808020540-7am56015ssi3ngi5
Ensure that property changed signals are only subscribed to once. 
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
        {
134
134
            signal_properties_changed
135
135
                = get_signal<interfaces::Properties::Signals::PropertiesChanged>();
 
136
 
 
137
            signal_properties_changed->connect(
 
138
                std::bind(
 
139
                    &Object::on_properties_changed,
 
140
                    shared_from_this(),
 
141
                    std::placeholders::_1));
136
142
        }
137
 
 
138
 
        signal_properties_changed->connect(
139
 
            std::bind(
140
 
                &Object::on_properties_changed,
141
 
                shared_from_this(),
142
 
                std::placeholders::_1));
143
143
    }
144
144
 
145
145
    typedef Property<PropertyDescription> PropertyType;