summaryrefslogtreecommitdiffstats
path: root/src/tools/qtextstream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qtextstream.cpp')
-rw-r--r--src/tools/qtextstream.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/tools/qtextstream.cpp b/src/tools/qtextstream.cpp
index 63f9625..28ddbd1 100644
--- a/src/tools/qtextstream.cpp
+++ b/src/tools/qtextstream.cpp
@@ -185,7 +185,7 @@
#if defined(QT_CHECK_STATE)
#undef CHECK_STREAM_PRECOND
#define CHECK_STREAM_PRECOND if ( !dev ) { \
- qWarning( "QTextStream: No device" ); \
+ tqWarning( "QTextStream: No device" ); \
return *this; }
#else
#define CHECK_STREAM_PRECOND
@@ -327,13 +327,13 @@ bool QStringBuffer::open( int m )
{
if ( !s ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QStringBuffer::open: No string" );
+ tqWarning( "QStringBuffer::open: No string" );
#endif
return FALSE;
}
if ( isOpen() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "QStringBuffer::open: Buffer already open" );
+ tqWarning( "QStringBuffer::open: Buffer already open" );
#endif
return FALSE;
}
@@ -377,16 +377,16 @@ bool QStringBuffer::at( Offset pos )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "QStringBuffer::at: Buffer is not open" );
+ tqWarning( "QStringBuffer::at: Buffer is not open" );
return FALSE;
}
#endif
if ( pos >= s->length()*2 ) {
#if defined(QT_CHECK_RANGE)
#if defined(QT_ABI_QT4)
- qWarning( "QStringBuffer::at: Index %lld out of range", pos );
+ tqWarning( "QStringBuffer::at: Index %lld out of range", pos );
#else
- qWarning( "QStringBuffer::at: Index %lu out of range", pos );
+ tqWarning( "QStringBuffer::at: Index %lu out of range", pos );
#endif
#endif
return FALSE;
@@ -401,11 +401,11 @@ Q_LONG QStringBuffer::readBlock( char *p, Q_ULONG len )
#if defined(QT_CHECK_STATE)
Q_CHECK_PTR( p );
if ( !isOpen() ) {
- qWarning( "QStringBuffer::readBlock: Buffer not open" );
+ tqWarning( "QStringBuffer::readBlock: Buffer not open" );
return -1;
}
if ( !isReadable() ) {
- qWarning( "QStringBuffer::readBlock: Read operation not permitted" );
+ tqWarning( "QStringBuffer::readBlock: Read operation not permitted" );
return -1;
}
#endif
@@ -427,23 +427,23 @@ Q_LONG QStringBuffer::writeBlock( const char *p, Q_ULONG len )
{
#if defined(QT_CHECK_NULL)
if ( p == 0 && len != 0 )
- qWarning( "QStringBuffer::writeBlock: Null pointer error" );
+ tqWarning( "QStringBuffer::writeBlock: Null pointer error" );
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "QStringBuffer::writeBlock: Buffer not open" );
+ tqWarning( "QStringBuffer::writeBlock: Buffer not open" );
return -1;
}
if ( !isWritable() ) {
- qWarning( "QStringBuffer::writeBlock: Write operation not permitted" );
+ tqWarning( "QStringBuffer::writeBlock: Write operation not permitted" );
return -1;
}
if ( ioIndex&1 ) {
- qWarning( "QStringBuffer::writeBlock: non-even index - non Unicode" );
+ tqWarning( "QStringBuffer::writeBlock: non-even index - non Unicode" );
return -1;
}
if ( len&1 ) {
- qWarning( "QStringBuffer::writeBlock: non-even length - non Unicode" );
+ tqWarning( "QStringBuffer::writeBlock: non-even length - non Unicode" );
return -1;
}
#endif
@@ -456,11 +456,11 @@ int QStringBuffer::getch()
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "QStringBuffer::getch: Buffer not open" );
+ tqWarning( "QStringBuffer::getch: Buffer not open" );
return -1;
}
if ( !isReadable() ) {
- qWarning( "QStringBuffer::getch: Read operation not permitted" );
+ tqWarning( "QStringBuffer::getch: Read operation not permitted" );
return -1;
}
#endif
@@ -484,11 +484,11 @@ int QStringBuffer::ungetch( int ch )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "QStringBuffer::ungetch: Buffer not open" );
+ tqWarning( "QStringBuffer::ungetch: Buffer not open" );
return -1;
}
if ( !isReadable() ) {
- qWarning( "QStringBuffer::ungetch: Read operation not permitted" );
+ tqWarning( "QStringBuffer::ungetch: Read operation not permitted" );
return -1;
}
#endif
@@ -1702,7 +1702,7 @@ QString QTextStream::readLine()
{
#if defined(QT_CHECK_STATE)
if ( !dev ) {
- qWarning( "QTextStream::readLine: No device" );
+ tqWarning( "QTextStream::readLine: No device" );
return QString::null;
}
#endif
@@ -1785,7 +1785,7 @@ QString QTextStream::read()
{
#if defined(QT_CHECK_STATE)
if ( !dev ) {
- qWarning( "QTextStream::read: No device" );
+ tqWarning( "QTextStream::read: No device" );
return QString::null;
}
#endif