Skip to content

Commit 3e47051

Browse files
committed
Use Qt::endl with QTextStream
1 parent d121f9d commit 3e47051

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/CacheDisk.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,18 @@ void CacheDisk::Add(std::shared_ptr<Frame> frame)
191191

192192
if (audio_file.open(QIODevice::WriteOnly)) {
193193
QTextStream audio_stream(&audio_file);
194-
audio_stream << frame->SampleRate() << endl;
195-
audio_stream << frame->GetAudioChannelsCount() << endl;
196-
audio_stream << frame->GetAudioSamplesCount() << endl;
197-
audio_stream << frame->ChannelsLayout() << endl;
194+
audio_stream << frame->SampleRate() << Qt::endl;
195+
audio_stream << frame->GetAudioChannelsCount() << Qt::endl;
196+
audio_stream << frame->GetAudioSamplesCount() << Qt::endl;
197+
audio_stream << frame->ChannelsLayout() << Qt::endl;
198198

199199
// Loop through all samples
200200
for (int channel = 0; channel < frame->GetAudioChannelsCount(); channel++)
201201
{
202202
// Get audio for this channel
203203
float *samples = frame->GetAudioSamples(channel);
204204
for (int sample = 0; sample < frame->GetAudioSamplesCount(); sample++)
205-
audio_stream << samples[sample] << endl;
205+
audio_stream << samples[sample] << Qt::endl;
206206
}
207207

208208
}

0 commit comments

Comments
 (0)