From 67bff2edcacb208dc44dcd521386bef686dc6dbf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 12 Feb 2024 14:08:42 +0900 Subject: Replace Q_WS_* defines with TQ_WS_* equivalents This is the first part of the replacement process. Usage of Q_WS_* has been replaced with the equivalent TQ_WS_*. Definition of Q_WS_* has been mirrored into TQ_WS_* defines, to allow TDE code to continue building till replacement is carried over to all other modules. Once that is completed, the original Q_WS_* defines will be removed. Signed-off-by: Michele Calgaro --- src/codecs/qtextcodec.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/codecs') diff --git a/src/codecs/qtextcodec.cpp b/src/codecs/qtextcodec.cpp index c37a7cb12..1c6df6953 100644 --- a/src/codecs/qtextcodec.cpp +++ b/src/codecs/qtextcodec.cpp @@ -71,7 +71,7 @@ #include "ntqstring.h" #include "../tools/qlocale_p.h" -#if !defined(TQT_NO_CODECS) && !defined(TQT_NO_BIG_CODECS) && defined(Q_WS_X11) +#if !defined(TQT_NO_CODECS) && !defined(TQT_NO_BIG_CODECS) && defined(TQ_WS_X11) # include "qfontcodecs_p.h" #endif @@ -1666,12 +1666,12 @@ private: void buildReverseMap(); int forwardIndex; -#ifndef Q_WS_QWS +#ifndef TQ_WS_QWS TQMemArray *reverseMap; #endif }; -#ifdef Q_WS_QWS +#ifdef TQ_WS_QWS static const TQSimpleTextCodec * reverseOwner = 0; static TQMemArray * reverseMap = 0; #endif @@ -2244,7 +2244,7 @@ static const struct { TQSimpleTextCodec::TQSimpleTextCodec( int i ) : TQTextCodec(), forwardIndex( i ) { -#ifndef Q_WS_QWS +#ifndef TQ_WS_QWS reverseMap = 0; #endif } @@ -2252,7 +2252,7 @@ TQSimpleTextCodec::TQSimpleTextCodec( int i ) TQSimpleTextCodec::~TQSimpleTextCodec() { -#ifndef Q_WS_QWS +#ifndef TQ_WS_QWS delete reverseMap; #else if ( reverseOwner == this ) { @@ -2265,7 +2265,7 @@ TQSimpleTextCodec::~TQSimpleTextCodec() void TQSimpleTextCodec::buildReverseMap() { -#ifdef Q_WS_QWS +#ifdef TQ_WS_QWS if ( reverseOwner != this ) { int m = 0; int i = 0; @@ -2347,7 +2347,7 @@ TQString TQSimpleTextCodec::toUnicode(const char* chars, int len) const TQCString TQSimpleTextCodec::fromUnicode(const TQString& uc, int& len ) const { -#ifdef Q_WS_QWS +#ifdef TQ_WS_QWS if ( this != reverseOwner ) #else if ( !reverseMap ) @@ -2377,7 +2377,7 @@ TQCString TQSimpleTextCodec::fromUnicode(const TQString& uc, int& len ) const void TQSimpleTextCodec::fromUnicode( const TQChar *in, unsigned short *out, int length ) const { -#ifdef Q_WS_QWS +#ifdef TQ_WS_QWS if ( this != reverseOwner ) #else if ( !reverseMap ) @@ -2396,7 +2396,7 @@ void TQSimpleTextCodec::fromUnicode( const TQChar *in, unsigned short *out, int unsigned short TQSimpleTextCodec::characterFromUnicode(const TQString &str, int pos) const { -#ifdef Q_WS_QWS +#ifdef TQ_WS_QWS if ( this != reverseOwner ) #else if ( !reverseMap ) @@ -2411,7 +2411,7 @@ unsigned short TQSimpleTextCodec::characterFromUnicode(const TQString &str, int bool TQSimpleTextCodec::canEncode( TQChar ch ) const { -#ifdef Q_WS_QWS +#ifdef TQ_WS_QWS if ( this != reverseOwner ) #else if ( !reverseMap ) @@ -2982,7 +2982,7 @@ void TQTextCodec::fromUnicodeInternal( const TQChar *in, unsigned short *out, in ((TQSimpleTextCodec *)this)->fromUnicode( in, out, length ); break; -#if !defined(TQT_NO_BIG_CODECS) && defined(Q_WS_X11) +#if !defined(TQT_NO_BIG_CODECS) && defined(TQ_WS_X11) // the TQFont*Codecs are only used on X11 case 15: -- cgit v1.2.3