summaryrefslogtreecommitdiffstats
path: root/src/tools/qbuffer.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-28 22:31:39 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-02-28 22:31:39 -0600
commit41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch)
tree6d4d5407c000add30aa78630e009c0e5d633e440 /src/tools/qbuffer.cpp
parent1740cd279522c060e738bbbffacab83355d2b794 (diff)
downloadtqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz
tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip
Automated conversion from qt3
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 75bb35da7..342309808 100644
--- a/src/tools/qbuffer.cpp
+++ b/src/tools/qbuffer.cpp
@@ -150,7 +150,7 @@ bool TQBuffer::setBuffer( TQByteArray buf )
{
if ( isOpen() ) {
#if defined(QT_CHECK_STATE)
- qWarning( "TQBuffer::setBuffer: Buffer is open" );
+ tqWarning( "TQBuffer::setBuffer: Buffer is open" );
#endif
return FALSE;
}
@@ -193,7 +193,7 @@ bool TQBuffer::open( int m )
{
if ( isOpen() ) { // buffer already open
#if defined(QT_CHECK_STATE)
- qWarning( "TQBuffer::open: Buffer already open" );
+ tqWarning( "TQBuffer::open: Buffer already open" );
#endif
return FALSE;
}
@@ -262,16 +262,16 @@ bool TQBuffer::at( Offset pos )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) {
- qWarning( "TQBuffer::at: Buffer is not open" );
+ tqWarning( "TQBuffer::at: Buffer is not open" );
return FALSE;
}
#endif
if ( pos > a_len ) {
#if defined(QT_CHECK_RANGE)
#if defined(QT_ABI_QT4)
- qWarning( "TQBuffer::at: Index %lld out of range", pos );
+ tqWarning( "TQBuffer::at: Index %lld out of range", pos );
#else
- qWarning( "TQBuffer::at: Index %lu out of range", pos );
+ tqWarning( "TQBuffer::at: Index %lu out of range", pos );
#endif
#endif
return FALSE;
@@ -289,15 +289,15 @@ Q_LONG TQBuffer::readBlock( char *p, Q_ULONG len )
{
#if defined(QT_CHECK_STATE)
if ( !p ) {
- qWarning( "TQBuffer::readBlock: Null pointer error" );
+ tqWarning( "TQBuffer::readBlock: Null pointer error" );
return -1;
}
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::readBlock: Buffer not open" );
+ tqWarning( "TQBuffer::readBlock: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQBuffer::readBlock: Read operation not permitted" );
+ tqWarning( "TQBuffer::readBlock: Read operation not permitted" );
return -1;
}
#endif
@@ -337,17 +337,17 @@ Q_LONG TQBuffer::writeBlock( const char *p, Q_ULONG len )
#if defined(QT_CHECK_NULL)
if ( p == 0 ) {
- qWarning( "TQBuffer::writeBlock: Null pointer error" );
+ tqWarning( "TQBuffer::writeBlock: Null pointer error" );
return -1;
}
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::writeBlock: Buffer not open" );
+ tqWarning( "TQBuffer::writeBlock: Buffer not open" );
return -1;
}
if ( !isWritable() ) { // writing not permitted
- qWarning( "TQBuffer::writeBlock: Write operation not permitted" );
+ tqWarning( "TQBuffer::writeBlock: Write operation not permitted" );
return -1;
}
#endif
@@ -355,7 +355,7 @@ Q_LONG TQBuffer::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)
- qWarning( "TQBuffer::writeBlock: Memory allocation error" );
+ tqWarning( "TQBuffer::writeBlock: Memory allocation error" );
#endif
setStatus( IO_ResourceError );
return -1;
@@ -380,17 +380,17 @@ Q_LONG TQBuffer::readLine( char *p, Q_ULONG maxlen )
{
#if defined(QT_CHECK_NULL)
if ( p == 0 ) {
- qWarning( "TQBuffer::readLine: Null pointer error" );
+ tqWarning( "TQBuffer::readLine: Null pointer error" );
return -1;
}
#endif
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::readLine: Buffer not open" );
+ tqWarning( "TQBuffer::readLine: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQBuffer::readLine: Read operation not permitted" );
+ tqWarning( "TQBuffer::readLine: Read operation not permitted" );
return -1;
}
#endif
@@ -419,11 +419,11 @@ int TQBuffer::getch()
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::getch: Buffer not open" );
+ tqWarning( "TQBuffer::getch: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQBuffer::getch: Read operation not permitted" );
+ tqWarning( "TQBuffer::getch: Read operation not permitted" );
return -1;
}
#endif
@@ -450,11 +450,11 @@ int TQBuffer::putch( int ch )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::putch: Buffer not open" );
+ tqWarning( "TQBuffer::putch: Buffer not open" );
return -1;
}
if ( !isWritable() ) { // writing not permitted
- qWarning( "TQBuffer::putch: Write operation not permitted" );
+ tqWarning( "TQBuffer::putch: Write operation not permitted" );
return -1;
}
#endif
@@ -479,11 +479,11 @@ int TQBuffer::ungetch( int ch )
{
#if defined(QT_CHECK_STATE)
if ( !isOpen() ) { // buffer not open
- qWarning( "TQBuffer::ungetch: Buffer not open" );
+ tqWarning( "TQBuffer::ungetch: Buffer not open" );
return -1;
}
if ( !isReadable() ) { // reading not permitted
- qWarning( "TQBuffer::ungetch: Read operation not permitted" );
+ tqWarning( "TQBuffer::ungetch: Read operation not permitted" );
return -1;
}
#endif