Qt 4.8
Public Functions | List of all members
QTextCodecCleanup Class Reference

Public Functions

 ~QTextCodecCleanup ()
 

Detailed Description

Definition at line 197 of file qtextcodec.cpp.

Constructors and Destructors

◆ ~QTextCodecCleanup()

QTextCodecCleanup::~QTextCodecCleanup ( )

Definition at line 208 of file qtextcodec.cpp.

209 {
210  if (!all)
211  return;
212 
213 #ifdef Q_DEBUG_TEXTCODEC
214  destroying_is_ok = true;
215 #endif
216 
217  QList<QTextCodec *> *myAll = all;
218  all = 0; // Otherwise the d'tor destroys the iterator
220  ; it != myAll->constEnd(); ++it) {
221  delete *it;
222  }
223  delete myAll;
224  localeMapper = 0;
225 
226 #ifdef Q_DEBUG_TEXTCODEC
227  destroying_is_ok = false;
228 #endif
229 }
static QList< QTextCodec * > * all
Definition: qtextcodec.cpp:188
#define it(className, varName)
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the list.
Definition: qlist.h:269
The QList::const_iterator class provides an STL-style const iterator for QList and QQueue...
Definition: qlist.h:228
static QTextCodec * localeMapper
Definition: qtextcodec.cpp:193
The QList class is a template class that provides lists.
Definition: qdatastream.h:62
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the list...
Definition: qlist.h:272

The documentation for this class was generated from the following file: