From 1cab047d088a397b00f5adc8febeac467fc4831d Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 25 Apr 2020 11:11:23 +0200 Subject: Remove QTextCodec dependency from QCoreGobalData As we want to move text codecs out of Qt Core, disentangle the dependency, but moving the global codec data into qtextcodec.*. Change-Id: Id7498423c7c4f9f42fd00c450947305d2af8c4be Reviewed-by: Thiago Macieira Reviewed-by: Alex Blasche --- src/corelib/kernel/qcoreglobaldata.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/corelib/kernel/qcoreglobaldata.cpp') diff --git a/src/corelib/kernel/qcoreglobaldata.cpp b/src/corelib/kernel/qcoreglobaldata.cpp index 7ff222f170..4df5a40e39 100644 --- a/src/corelib/kernel/qcoreglobaldata.cpp +++ b/src/corelib/kernel/qcoreglobaldata.cpp @@ -38,31 +38,17 @@ ****************************************************************************/ #include "qcoreglobaldata_p.h" -#if QT_CONFIG(textcodec) -#include "qtextcodec.h" -#endif QT_BEGIN_NAMESPACE Q_GLOBAL_STATIC(QCoreGlobalData, globalInstance) QCoreGlobalData::QCoreGlobalData() -#if QT_CONFIG(textcodec) - : codecForLocale(nullptr) -#endif { } QCoreGlobalData::~QCoreGlobalData() { -#if QT_CONFIG(textcodec) - codecForLocale = nullptr; - QList tmp = allCodecs; - allCodecs.clear(); - codecCache.clear(); - for (QList::const_iterator it = tmp.constBegin(); it != tmp.constEnd(); ++it) - delete *it; -#endif } QCoreGlobalData *QCoreGlobalData::instance() -- cgit v1.2.3