fixed build error

This commit is contained in:
orignal
2026-08-06 20:38:27 -04:00
parent 77f4f22df6
commit bc9aba65c8
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -882,7 +882,7 @@ namespace torrents
if (s->m_IncomingRequestsQueue.empty ())
s->SendRequestedBlock (requestedBlock);
else
s->m_IncomingRequestsQueue.push_back (requestedBlock);
s->m_IncomingRequestsQueue.emplace_back (std::move (requestedBlock));
});
}
piece.SetIsSending (false);
+3
View File
@@ -167,6 +167,9 @@ namespace torrents
struct RequestedBlock
{
uint32_t index, offset, length;
RequestedBlock (uint32_t i, uint32_t o, uint32_t l): index(i), offset(0), length (l) {}
RequestedBlock(const RequestedBlock& ) = default;
RequestedBlock(RequestedBlock&& ) = default;
};
public: