|
|
@ -41,9 +41,11 @@ Utils::IO::FileDeviceOutputIterator::FileDeviceOutputIterator(QFileDevice &devic |
|
|
|
|
|
|
|
|
|
|
|
Utils::IO::FileDeviceOutputIterator::~FileDeviceOutputIterator() |
|
|
|
Utils::IO::FileDeviceOutputIterator::~FileDeviceOutputIterator() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (m_device->error() == QFileDevice::NoError) |
|
|
|
if (m_buffer.use_count() == 1) { |
|
|
|
m_device->write(*m_buffer); |
|
|
|
if (m_device->error() == QFileDevice::NoError) |
|
|
|
m_buffer->clear(); |
|
|
|
m_device->write(*m_buffer); |
|
|
|
|
|
|
|
m_buffer->clear(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Utils::IO::FileDeviceOutputIterator &Utils::IO::FileDeviceOutputIterator::operator=(const char c) |
|
|
|
Utils::IO::FileDeviceOutputIterator &Utils::IO::FileDeviceOutputIterator::operator=(const char c) |
|
|
|