summaryrefslogtreecommitdiffstats
path: root/src/tools/qbuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qbuffer.cpp')
-rw-r--r--src/tools/qbuffer.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/tools/qbuffer.cpp b/src/tools/qbuffer.cpp
index ab2cdac..35509b7 100644
--- a/src/tools/qbuffer.cpp
+++ b/src/tools/qbuffer.cpp
@@ -150,7 +150,7 @@ bool QBuffer::setBuffer( QByteArray buf )
{
if ( isOpen() ) {
#if defined(QT_CHECK_STATE)
- tqWarning( "QBuffer::setBuffer: Buffer is open" );
+ qWarning( "QBuffer::setBuffer: Buffer is open" );
#endif
return FALSE;
}
@@ -193,7 +193,7 @@ bool QBuffer::open( int m )
{
if ( isOpen() ) { // buffer already open
#if defined(QT_CHECK_STATE)
- tqWarning( "QBuffer::open: Buffer already open" );
+ qWarning( "QBuffer::open: Buffer already open" );
#endif
return FALSE;
}
@@ -262,16 +262,16 @@ bool QBuffer::at( Offset pos )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- tqWarning( "QBuffer::at: Buffer is not open" );
+ qWarning( "QBuffer::at: Buffer is not open" );
return FALSE;
}
#endif
if ( pos > a_len ) {
#if defined(QT_CHECK_RANGE)
#if defined(QT_ABI_QT4)
- tqWarning( "QBuffer::at: Index %lld out of range", pos );
+ qWarning( "QBuffer::at: Index %lld out of range", pos );
#else
- tqWarning( "QBuffer::at: Index %lu out of range", pos );
+ qWarning( "QBuffer::at: Index %lu out of range", pos );
#endif
#endif
return FALSE;
@@ -289,15 +289,15 @@ Q_LONG QBuffer::readBlock( char *p, Q_ULONG len )
{
#if defined(QT_CHECK_STATE)
if ( !p ) {
- tqWarning( "QBuffer::readBlock: Null pointer error" );
+ qWarning( "QBuffer::readBlock: Null pointer error" );
return -1;
}
if ( !isOpen() ) { // buffer not open
- tqWarning( "QBuffer::readBlock: Buffer not open" );
+ qWarning( "QBuffer::readBlock: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- tqWarning( "QBuffer::readBlock: Read operation not permitted" );
+ qWarning( "QBuffer::readBlock: Read operation not permitted" );
return -1;
}
#endif
@@ -337,17 +337,17 @@ Q_LONG QBuffer::writeBlock( const char *p, Q_ULONG len )
#if defined(QT_CHECK_NULL)
if ( p == 0 ) {
- tqWarning( "QBuffer::writeBlock: Null pointer error" );
+ qWarning( "QBuffer::writeBlock: Null pointer error" );
return -1;
}
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- tqWarning( "QBuffer::writeBlock: Buffer not open" );
+ qWarning( "QBuffer::writeBlock: Buffer not open" );
return -1;
}
if ( !isWritable() ) { // writing not permitted
- tqWarning( "QBuffer::writeBlock: Write operation not permitted" );
+ qWarning( "QBuffer::writeBlock: Write operation not permitted" );
return -1;
}
#endif
@@ -355,7 +355,7 @@ Q_LONG QBuffer::writeBlock( const char *p, Q_ULONG len )
Q_ULONG new_len = a_len + a_inc*((ioIndex+len-a_len)/a_inc+1);
if ( !a.resize( new_len ) ) { // could not resize
#if defined(QT_CHECK_NULL)
- tqWarning( "QBuffer::writeBlock: Memory allocation error" );
+ qWarning( "QBuffer::writeBlock: Memory allocation error" );
#endif
setStatus( IO_ResourceError );
return -1;
@@ -380,17 +380,17 @@ Q_LONG QBuffer::readLine( char *p, Q_ULONG maxlen )
{
#if defined(QT_CHECK_NULL)
if ( p == 0 ) {
- tqWarning( "QBuffer::readLine: Null pointer error" );
+ qWarning( "QBuffer::readLine: Null pointer error" );
return -1;
}
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- tqWarning( "QBuffer::readLine: Buffer not open" );
+ qWarning( "QBuffer::readLine: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- tqWarning( "QBuffer::readLine: Read operation not permitted" );
+ qWarning( "QBuffer::readLine: Read operation not permitted" );
return -1;
}
#endif
@@ -419,11 +419,11 @@ int QBuffer::getch()
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- tqWarning( "QBuffer::getch: Buffer not open" );
+ qWarning( "QBuffer::getch: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- tqWarning( "QBuffer::getch: Read operation not permitted" );
+ qWarning( "QBuffer::getch: Read operation not permitted" );
return -1;
}
#endif
@@ -450,11 +450,11 @@ int QBuffer::putch( int ch )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- tqWarning( "QBuffer::putch: Buffer not open" );
+ qWarning( "QBuffer::putch: Buffer not open" );
return -1;
}
if ( !isWritable() ) { // writing not permitted
- tqWarning( "QBuffer::putch: Write operation not permitted" );
+ qWarning( "QBuffer::putch: Write operation not permitted" );
return -1;
}
#endif
@@ -479,11 +479,11 @@ int QBuffer::ungetch( int ch )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- tqWarning( "QBuffer::ungetch: Buffer not open" );
+ qWarning( "QBuffer::ungetch: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- tqWarning( "QBuffer::ungetch: Read operation not permitted" );
+ qWarning( "QBuffer::ungetch: Read operation not permitted" );
return -1;
}
#endif