summaryrefslogtreecommitdiffstats
path: root/kradio3/src/fileringbuffer.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:32:31 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:32:31 -0600
commit5fb78f4b68672906005b059e7e5066c702bc5c90 (patch)
tree715819ae8220ea037525fe5d7f15f7879c137b88 /kradio3/src/fileringbuffer.cpp
parentb66ecc4a25ee7b26513ffe3c91ffbed7fe313a0d (diff)
downloadtderadio-5fb78f4b68672906005b059e7e5066c702bc5c90.tar.gz
tderadio-5fb78f4b68672906005b059e7e5066c702bc5c90.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kradio3/src/fileringbuffer.cpp')
-rw-r--r--kradio3/src/fileringbuffer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kradio3/src/fileringbuffer.cpp b/kradio3/src/fileringbuffer.cpp
index 584b8c2..a31e007 100644
--- a/kradio3/src/fileringbuffer.cpp
+++ b/kradio3/src/fileringbuffer.cpp
@@ -32,7 +32,7 @@ FileRingBuffer::FileRingBuffer(const TQString &filename, TQ_UINT64 max_size)
m_FillSize = 0;
m_Start = 0;
m_error = m_File == NULL;
- m_errorString = m_File ? TQString() : i18n("cannot open buffer file %1").tqarg(filename);
+ m_errorString = m_File ? TQString() : i18n("cannot open buffer file %1").arg(filename);
}
@@ -65,7 +65,7 @@ bool FileRingBuffer::resize(const TQString &filename, TQ_UINT64 new_max_size)
m_FileName = m_BaseFileName + "_" + TQString::number(++m_FileIdx);
m_File = fopen(m_FileName.ascii(), "w+");
m_error = m_File == NULL;
- m_errorString = m_File ? TQString() : i18n("cannot open buffer file %1").tqarg(filename);
+ m_errorString = m_File ? TQString() : i18n("cannot open buffer file %1").arg(filename);
}
if (new_max_size >= m_RealSize) {
@@ -90,13 +90,13 @@ bool FileRingBuffer::resize(const TQString &filename, TQ_UINT64 new_max_size)
newFill += tmp_size;
} else {
m_error = true;
- m_errorString += i18n("FileRingbuffer::resize: Writing to tmpfile %1 failed. ").tqarg(tmp_file_name);
+ m_errorString += i18n("FileRingbuffer::resize: Writing to tmpfile %1 failed. ").arg(tmp_file_name);
}
}
}
} else {
m_error = true;
- m_errorString += i18n("FileRingbuffer::resize: Opening tmpfile %1 failed. ").tqarg(tmp_file_name);
+ m_errorString += i18n("FileRingbuffer::resize: Opening tmpfile %1 failed. ").arg(tmp_file_name);
}
if (!m_error) {
@@ -124,7 +124,7 @@ size_t FileRingBuffer::addData (const char *src, size_t size)
fseek(m_File, m_Start + m_FillSize, SEEK_SET);
if (rest > 0 && fwrite(src, rest, 1, m_File) <= 0) {
m_error = true;
- m_errorString += i18n("FileRingBuffer::addData: failed writing data to file %1.").tqarg(m_FileName);
+ m_errorString += i18n("FileRingBuffer::addData: failed writing data to file %1.").arg(m_FileName);
} else {
m_FillSize += rest;
if (m_Start + m_FillSize > m_RealSize)
@@ -142,7 +142,7 @@ size_t FileRingBuffer::addData (const char *src, size_t size)
fseek(m_File, m_Start + m_FillSize - m_RealSize, SEEK_SET);
if (fwrite(src, rest, 1, m_File) <= 0) {
m_error = true;
- m_errorString += i18n("FileRingBuffer::addData: failed writing data to file %1.").tqarg(m_FileName);
+ m_errorString += i18n("FileRingBuffer::addData: failed writing data to file %1.").arg(m_FileName);
} else {
m_FillSize += rest;
written += rest;
@@ -165,7 +165,7 @@ size_t FileRingBuffer::takeData(char *dst, size_t size)
fseek(m_File, m_Start, SEEK_SET);
if (fread(dst+read, n, 1, m_File) <= 0) {
m_error = true;
- m_errorString += i18n("FileRingBuffer::takeData: failed reading data to file %1.").tqarg(m_FileName);
+ m_errorString += i18n("FileRingBuffer::takeData: failed reading data to file %1.").arg(m_FileName);
} else {
m_FillSize -= n;
m_Start += n;