summaryrefslogtreecommitdiffstats
path: root/qtools/qtextcodec.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-12-30 17:55:14 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-12-30 17:55:14 (GMT)
commit6e51abf63021dc9fe32c05f003232fe68a08591d (patch)
treee9fe6f526e4a2b22b1a55659331c15750969a019 /qtools/qtextcodec.cpp
parent744d1ca52e25dfa9e3d656056d87ed7cb6320585 (diff)
downloadDoxygen-6e51abf63021dc9fe32c05f003232fe68a08591d.zip
Doxygen-6e51abf63021dc9fe32c05f003232fe68a08591d.tar.gz
Doxygen-6e51abf63021dc9fe32c05f003232fe68a08591d.tar.bz2
Reduced and improved functionality of QList
- operations on current index and node (next(), prev(), last(), first()) have been removed. - access to internal nodes has been removed. - old QList has been renamed to QInternalList for use inside qtools only. - added type safe compare, new, and delete operations (compareValues(), newValue(), deleteValue()). - add compareValues also to QDict for consistency. - changed doxygen's implementation to comply with the new QList and QDict interface.
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 ) {