Lines 97-100:
#ifndef QT_NO_TEXTCODECPLUGIN
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
#endif
#ifndef QT_NO_TEXTCODECPLUGIN
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
(QTextCodecFactoryInterface_iid, QLatin1String("/codecs")))
#endif
To copy to clipboard, switch view to plain text mode
shouldn't it be in one line?
Lines 136-147:
#ifndef QT_NO_TEXTCODECPLUGIN
QFactoryLoader *l = loader();
for (int i = 0; i < keys.size(); ++i) {
if (nameMatch(name, keys.at(i).toLatin1())) {
if (QTextCodecFactoryInterface *factory
= qobject_cast<QTextCodecFactoryInterface*>(l->instance(realName))) {
return factory->create(realName);
}
}
}
#ifndef QT_NO_TEXTCODECPLUGIN
QFactoryLoader *l = loader();
QStringList keys = l->keys();
for (int i = 0; i < keys.size(); ++i) {
if (nameMatch(name, keys.at(i).toLatin1())) {
QString realName = keys.at(i);
if (QTextCodecFactoryInterface *factory
= qobject_cast<QTextCodecFactoryInterface*>(l->instance(realName))) {
return factory->create(realName);
}
}
}
To copy to clipboard, switch view to plain text mode
Lines 156-160:
#ifndef QT_NO_TEXTCODECPLUGIN
if (QTextCodecFactoryInterface *factory
= qobject_cast<QTextCodecFactoryInterface*>(loader()->instance(name)))
return factory->create(name);
#ifndef QT_NO_TEXTCODECPLUGIN
QString name = QLatin1String("MIB: ") + QString::number(mib);
if (QTextCodecFactoryInterface *factory
= qobject_cast<QTextCodecFactoryInterface*>(loader()->instance(name)))
return factory->create(name);
To copy to clipboard, switch view to plain text mode
Lines 1000-1008:
#ifndef QT_NO_TEXTCODECPLUGIN
QFactoryLoader *l = loader();
for (int i = 0; i < keys.size(); ++i) {
if (!codecs.contains(name))
codecs += name;
}
}
#ifndef QT_NO_TEXTCODECPLUGIN
QFactoryLoader *l = loader();
QStringList keys = l->keys();
for (int i = 0; i < keys.size(); ++i) {
if (!keys.at(i).startsWith(QLatin1String("MIB: "))) {
QByteArray name = keys.at(i).toLatin1();
if (!codecs.contains(name))
codecs += name;
}
}
To copy to clipboard, switch view to plain text mode
Lines 1027-1029:
#ifndef QT_NO_TEXTCODECPLUGIN
QFactoryLoader *l = loader();
#ifndef QT_NO_TEXTCODECPLUGIN
QFactoryLoader *l = loader();
QStringList keys = l->keys();
To copy to clipboard, switch view to plain text mode
thanks in advance
best regards
Tomasz
Bookmarks