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
44 // This packet listener handles the packet containing information about the latest zone ID in which we are allowed to share.44 // This packet listener handles the packet containing information about the latest zone ID in which we are allowed to share.
45 auto nodeList = DependencyManager::get<NodeList>();45 auto nodeList = DependencyManager::get<NodeList>();
46 PacketReceiver& packetReceiver = nodeList->getPacketReceiver();46 PacketReceiver& packetReceiver = nodeList->getPacketReceiver();
47 packetReceiver.registerListener(PacketType::AvatarZonePresence, this, "processAvatarZonePresencePacketOnClient");47 packetReceiver.registerListener(PacketType::AvatarZonePresence,
48 PacketReceiver::makeUnsourcedListenerReference<ScreenshareScriptingInterface>(this, &ScreenshareScriptingInterface::processAvatarZonePresencePacketOnClient));
48};49};
49 50
50ScreenshareScriptingInterface::~ScreenshareScriptingInterface() {51ScreenshareScriptingInterface::~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