mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 11:33:44 +02:00
Compile fixes
This commit is contained in:
parent
818521864b
commit
7713219718
5 changed files with 7 additions and 7 deletions
|
@ -156,7 +156,7 @@ void AudioInjector::injectToMixer() {
|
|||
auto audioPacket = NLPacket::create(PacketType::InjectAudio);
|
||||
|
||||
// setup the packet for injected audio
|
||||
QDataStream audioPacketStream(&audioPacket);
|
||||
QDataStream audioPacketStream(audioPacket.get());
|
||||
|
||||
// pack some placeholder sequence number for now
|
||||
audioPacketStream << (quint16) 0;
|
||||
|
|
|
@ -618,7 +618,7 @@ void NodeList::pingPunchForInactiveNode(const SharedNodePointer& node) {
|
|||
|
||||
if (!node->getSymmetricSocket().isNull()) {
|
||||
auto symmetricPingPacket = constructPingPacket(PingType::Symmetric);
|
||||
sendPacket(symmetricPingPacket, node, node->getSymmetricSocket());
|
||||
sendPacket(std::move(symmetricPingPacket), node, node->getSymmetricSocket());
|
||||
}
|
||||
|
||||
node->incrementConnectionAttempts();
|
||||
|
|
|
@ -41,7 +41,7 @@ bool JurisdictionListener::queueJurisdictionRequest() {
|
|||
|
||||
nodeList->eachNode([&](const SharedNodePointer& node) {
|
||||
if (node->getType() == getNodeType() && node->getActiveSocket()) {
|
||||
_packetSender.queuePacketForSending(node, packet);
|
||||
_packetSender.queuePacketForSending(node, std::move(packet));
|
||||
nodeCount++;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -271,8 +271,8 @@ bool JurisdictionMap::writeToFile(const char* filename) {
|
|||
int JurisdictionMap::packEmptyJurisdictionIntoMessage(NodeType_t type, unsigned char* destinationBuffer, int availableBytes) {
|
||||
unsigned char* bufferStart = destinationBuffer;
|
||||
|
||||
int headerLength = DependencyManager::get<NodeList>()->populatePacketHeader(reinterpret_cast<char*>(destinationBuffer),
|
||||
PacketType::Jurisdiction);
|
||||
int headerLength = DependencyManager::get<NodeList>()->populatePacketHeader(reinterpret_cast<char*>(destinationBuffer),
|
||||
PacketType::Jurisdiction);
|
||||
destinationBuffer += headerLength;
|
||||
|
||||
// Pack the Node Type in first byte
|
||||
|
@ -290,7 +290,7 @@ int JurisdictionMap::packEmptyJurisdictionIntoMessage(NodeType_t type, unsigned
|
|||
int JurisdictionMap::packIntoMessage(unsigned char* destinationBuffer, int availableBytes) {
|
||||
unsigned char* bufferStart = destinationBuffer;
|
||||
|
||||
int headerLength = DependencyManager::get<NodeList>()->populatePacketHeader(reinterpret_cast<char*>(destinationBuffer),
|
||||
int headerLength = DependencyManager::get<NodeList>()->populatePacketHeader(reinterpret_cast<char*>(destinationBuffer),
|
||||
PacketType::Jurisdiction);
|
||||
destinationBuffer += headerLength;
|
||||
|
||||
|
|
|
@ -176,7 +176,7 @@ private:
|
|||
|
||||
bool _isReadyToSend;
|
||||
|
||||
std::unique_ptr<NLPacket> _statsPacket { NLPacket::create(PacketType::OctreeStats); }
|
||||
std::unique_ptr<NLPacket> _statsPacket = NLPacket::create(PacketType::OctreeStats);
|
||||
|
||||
// scene timing data in usecs
|
||||
bool _isStarted;
|
||||
|
|
Loading…
Reference in a new issue