mirror of
https://github.com/debauchee/barrier.git
synced 2026-06-30 08:56:21 +08:00
Brutally replace all reinterpret_casts with static_casts
This commit is contained in:
@@ -59,7 +59,7 @@ StreamBuffer::peek(UInt32 n)
|
||||
scan = m_chunks.erase(scan);
|
||||
}
|
||||
|
||||
return reinterpret_cast<const void*>(&(head->begin()[m_headUsed]));
|
||||
return static_cast<const void*>(&(head->begin()[m_headUsed]));
|
||||
}
|
||||
|
||||
void
|
||||
@@ -104,7 +104,7 @@ StreamBuffer::write(const void* vdata, UInt32 n)
|
||||
m_size += n;
|
||||
|
||||
// cast data to bytes
|
||||
const UInt8* data = reinterpret_cast<const UInt8*>(vdata);
|
||||
const UInt8* data = static_cast<const UInt8*>(vdata);
|
||||
|
||||
// point to last chunk if it has space, otherwise append an empty chunk
|
||||
ChunkList::iterator scan = m_chunks.end();
|
||||
|
||||
Reference in New Issue
Block a user