diff options
author | Ima Mechanique <ima.mechanique@secondlife.com> | 2013-12-18 06:26:22 +0000 |
---|---|---|
committer | Ima Mechanique <ima.mechanique@secondlife.com> | 2013-12-18 06:26:22 +0000 |
commit | 1886428638c2cb1e82db9f97ad311c2a506677a6 (patch) | |
tree | 96febecdf58e1618720456acd790ad0f3107f735 /indra/newview/llagent.h | |
parent | 0e346960bb45900cf1d9472834687c9b7b928e1f (diff) |
STORM-1831 Changing addRegionChangedCallback to more closely resemble the feature it replaces. This fixes the crashes reported by Whirly ;-)
Diffstat (limited to 'indra/newview/llagent.h')
-rwxr-xr-x | indra/newview/llagent.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llagent.h b/indra/newview/llagent.h index bc003387de..0766407494 100755 --- a/indra/newview/llagent.h +++ b/indra/newview/llagent.h @@ -271,13 +271,13 @@ private: * // you may or may not want to remove that callback * } */ - typedef boost::function<void()> region_changed_callback_t; - boost::signals2::connection addRegionChangedCallback(region_changed_callback_t); + typedef boost::signals2::signal<void()> region_changed_signal_t; + + boost::signals2::connection addRegionChangedCallback(const region_changed_signal_t::slot_type& cb); void removeRegionChangedCallback(boost::signals2::connection callback); private: LLViewerRegion *mRegionp; - typedef boost::signals2::signal<void()> region_changed_signal_t; region_changed_signal_t mRegionChangedSignal; //-------------------------------------------------------------------- |