summaryrefslogtreecommitdiff
path: root/qtools/qtextcodec.cpp
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-15 10:51:13 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-15 10:51:13 +0900
commitb65cb2d67b946445ba89e1938cee8527969922cd (patch)
treee3aff002a9b580aef8a80eb3823786993c3a5c64 /qtools/qtextcodec.cpp
parent738086af77ab085837d0044a33a5d954a3edc6f5 (diff)
downloaddoxygen-b65cb2d67b946445ba89e1938cee8527969922cd.tar.gz
doxygen-b65cb2d67b946445ba89e1938cee8527969922cd.tar.bz2
doxygen-b65cb2d67b946445ba89e1938cee8527969922cd.zip
Imported Upstream version 1.8.7upstream/1.8.7
Diffstat (limited to 'qtools/qtextcodec.cpp')
-rw-r--r--qtools/qtextcodec.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/qtools/qtextcodec.cpp b/qtools/qtextcodec.cpp
index 9721c25..168445f 100644
--- a/qtools/qtextcodec.cpp
+++ b/qtools/qtextcodec.cpp
@@ -38,7 +38,7 @@
#include "qtextcodec.h"
#ifndef QT_NO_TEXTCODEC
-#include "qlist.h"
+#include "qinternallist.h"
#ifndef QT_NO_CODECS
#include "qutfcodec.h"
//#include "qgbkcodec.h"
@@ -60,7 +60,7 @@
#include <locale.h>
-static QList<QTextCodec> * all = 0;
+static QInternalList<QTextCodec> * all = 0;
static bool destroying_is_ok; // starts out as 0
/*! Deletes all the created codecs.
@@ -84,7 +84,7 @@ void QTextCodec::deleteAllCodecs()
return;
destroying_is_ok = TRUE;
- QList<QTextCodec> * ball = all;
+ QInternalList<QTextCodec> * ball = all;
all = 0;
ball->clear();
delete ball;
@@ -101,7 +101,7 @@ static void realSetup()
if ( destroying_is_ok )
qWarning( "creating new codec during codec cleanup" );
#endif
- all = new QList<QTextCodec>;
+ all = new QInternalList<QTextCodec>;
all->setAutoDelete( TRUE );
setupBuiltinCodecs();
}
@@ -354,7 +354,7 @@ QTextCodec* QTextCodec::codecForIndex(int i)
QTextCodec* QTextCodec::codecForMib(int mib)
{
setup();
- QListIterator<QTextCodec> i(*all);
+ QInternalListIterator<QTextCodec> i(*all);
QTextCodec* result;
for ( ; (result=i); ++i ) {
if ( result->mibEnum()==mib )
@@ -626,7 +626,7 @@ QTextCodec* QTextCodec::codecForLocale()
QTextCodec* QTextCodec::codecForName(const char* hint, int accuracy)
{
setup();
- QListIterator<QTextCodec> i(*all);
+ QInternalListIterator<QTextCodec> i(*all);
QTextCodec* result = 0;
int best=accuracy;
for ( QTextCodec* cursor; (cursor=i); ++i ) {
@@ -653,7 +653,7 @@ QTextCodec* QTextCodec::codecForName(const char* hint, int accuracy)
QTextCodec* QTextCodec::codecForContent(const char* chars, int len)
{
setup();
- QListIterator<QTextCodec> i(*all);
+ QInternalListIterator<QTextCodec> i(*all);
QTextCodec* result = 0;
int best=0;
for ( QTextCodec* cursor; (cursor=i); ++i ) {