summaryrefslogtreecommitdiffstats
path: root/src/tools/qtextstream.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2018-10-17 19:46:30 +0900
committerMichele Calgaro <[email protected]>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /src/tools/qtextstream.cpp
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.tar.gz
tqt3-69d87202cb139ffe9e4b3ce92e434523b7b09b64.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/tools/qtextstream.cpp')
-rw-r--r--src/tools/qtextstream.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/tools/qtextstream.cpp b/src/tools/qtextstream.cpp
index 213581b82..36a74c4e7 100644
--- a/src/tools/qtextstream.cpp
+++ b/src/tools/qtextstream.cpp
@@ -40,7 +40,7 @@
#include "ntqtextstream.h"
-#ifndef QT_NO_TEXTSTREAM
+#ifndef TQT_NO_TEXTSTREAM
#include "ntqtextcodec.h"
#include "ntqregexp.h"
#include "ntqbuffer.h"
@@ -222,7 +222,7 @@ const int TQTextStream::floatfield = ( TQTextStream::scientific |
class TQTextStreamPrivate {
public:
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
TQTextStreamPrivate()
: decoder( 0 ), encoder( 0 ), sourceType( NotSet ) { }
~TQTextStreamPrivate() {
@@ -705,7 +705,7 @@ uint TQTextStream::ts_getbuf( TQChar* buf, uint len )
}
}
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( mapper ) {
bool shortRead = FALSE;
if ( !d->decoder )
@@ -893,7 +893,7 @@ uint TQTextStream::ts_getline( TQChar* buf )
return rnum;
}
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( mapper ) {
if ( !d->decoder )
d->decoder = mapper->makeDecoder();
@@ -964,7 +964,7 @@ uint TQTextStream::ts_getline( TQChar* buf )
*/
void TQTextStream::ts_putc( TQChar c )
{
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( mapper ) {
if ( !d->encoder )
d->encoder = mapper->makeEncoder();
@@ -1078,7 +1078,7 @@ TQTextStream &TQTextStream::writeBlock( const char* p, uint len )
dev->writeBlock( (char*)u, len * sizeof(TQChar) );
delete [] u;
}
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
else if (mapper) {
if (!d->encoder)
d->encoder = mapper->makeEncoder();
@@ -1097,7 +1097,7 @@ TQTextStream &TQTextStream::writeBlock( const char* p, uint len )
TQTextStream &TQTextStream::writeBlock( const TQChar* p, uint len )
{
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
if ( mapper ) {
if ( !d->encoder )
d->encoder = mapper->makeEncoder();
@@ -2533,7 +2533,7 @@ void TQTextStream::setEncoding( Encoding e )
networkOrder = TQChar::networkOrdered();
break;
case UnicodeUTF8:
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
mapper = TQTextCodec::codecForMib( 106 );
latin1 = FALSE;
doUnicodeHeader = TRUE;
@@ -2568,7 +2568,7 @@ void TQTextStream::setEncoding( Encoding e )
break;
case Locale:
latin1 = TRUE; // fallback to Latin-1
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
mapper = TQTextCodec::codecForLocale();
// optimized Latin-1 processing
#if defined(Q_OS_WIN32)
@@ -2590,7 +2590,7 @@ void TQTextStream::setEncoding( Encoding e )
}
-#ifndef QT_NO_TEXTCODEC
+#ifndef TQT_NO_TEXTCODEC
/*!
Sets the codec for this stream to \a codec. Will not try to
autodetect Unicode.
@@ -2633,4 +2633,4 @@ TQTextCodec *TQTextStream::codec()
#endif
-#endif // QT_NO_TEXTSTREAM
+#endif // TQT_NO_TEXTSTREAM