History

Merge pull request #613 from odysseus654/pr/registerListener

[enhancement] transition listener registration from member string name to member string pointer

kasenvr committed 6 years ago

Commit 2b511d82 parents 1aac970 34e3d9d32 files · +350 −255Browse files

Showing the changes to interface/src/scripting/ScreenshareScriptingInterface.cpp (1 of 32 files). Show all

Unified · Split

interface/src/scripting/ScreenshareScriptingInterface.cpp+2−1
@@ -44,7 +44,8 @@ ScreenshareScriptingInterface::ScreenshareScriptingInterface() { · 43 unmodified lines
4444 // This packet listener handles the packet containing information about the latest zone ID in which we are allowed to share.
4545 auto nodeList = DependencyManager::get<NodeList>();
4646 PacketReceiver& packetReceiver = nodeList->getPacketReceiver();
47− packetReceiver.registerListener(PacketType::AvatarZonePresence, this, "processAvatarZonePresencePacketOnClient");
47+ packetReceiver.registerListener(PacketType::AvatarZonePresence,
48+ PacketReceiver::makeUnsourcedListenerReference<ScreenshareScriptingInterface>(this, &ScreenshareScriptingInterface::processAvatarZonePresencePacketOnClient));
4849 };
4950
5051 ScreenshareScriptingInterface::~ScreenshareScriptingInterface() {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t