mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #937 Resolved clazy warnings: unnecessary detaching of containers.
This commit is contained in:
@@ -134,10 +134,11 @@ namespace BlackSound
|
||||
while (chunks)
|
||||
{
|
||||
// periodSize-> Returns the period size in bytes.
|
||||
//! \todo looks wrong: read() will memcpy from m_buffer.constData() to m_buffer.data()
|
||||
const qint64 len = this->read(m_buffer.data(), this->m_audioOutput->periodSize());
|
||||
if (len >= 0)
|
||||
{
|
||||
this->m_pushModeIODevice->write(m_buffer.data(), len);
|
||||
this->m_pushModeIODevice->write(m_buffer.constData(), len);
|
||||
}
|
||||
if (len != this->m_audioOutput->periodSize())
|
||||
{
|
||||
@@ -176,7 +177,7 @@ namespace BlackSound
|
||||
Q_UNUSED(bytesForAllChannels) // suppress warning in release builds
|
||||
|
||||
m_buffer.resize(totalLength);
|
||||
unsigned char *bufferPointer = reinterpret_cast<unsigned char *>(m_buffer.data());
|
||||
unsigned char *bufferPointer = reinterpret_cast<unsigned char *>(m_buffer.data()); // clazy:exclude=detaching-member
|
||||
|
||||
foreach(Tone t, this->m_tones)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user