Skip to content
Snippets Groups Projects
Commit d16ea787 authored by ¡Cinder! ㊝'s avatar ¡Cinder! ㊝ :speech_balloon:
Browse files

Return signals2::connection on LLViewerDisplayName::addNameChangedCallback()...

Return signals2::connection on LLViewerDisplayName::addNameChangedCallback() We were discarding it anyway, why not make it available to tap into?
parent 70798f1a
No related branches found
No related tags found
1 merge request!81Local Inventory setup, Hex editor, Legacy Profiles that aren't ass, and sundry methods abound
......@@ -47,9 +47,9 @@ namespace LLViewerDisplayName
// Fired when there is a change in the agent's name
name_changed_signal_t sNameChangedSignal;
void addNameChangedCallback(const name_changed_signal_t::slot_type& cb)
boost::signals2::connection addNameChangedCallback(const name_changed_signal_t::slot_type& cb)
{
sNameChangedSignal.connect(cb);
return sNameChangedSignal.connect(cb);
}
void doNothing() { }
......
......@@ -47,9 +47,9 @@ namespace LLViewerDisplayName
// unavailable or name not available.
void set(const std::string& display_name, const set_name_slot_t& slot);
void setDisplayNameCoro(const std::string cap_url, const LLSD body);
void setDisplayNameCoro(const std::string cap_url, const LLSD body);
void addNameChangedCallback(const name_changed_signal_t::slot_type& cb);
boost::signals2::connection addNameChangedCallback(const name_changed_signal_t::slot_type& cb);
}
#endif // LLVIEWERDISPLAYNAME_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment