use foreach() for iteration in runcRcc()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2020-09-12 20:31:38 +03:00
parent 485f746c43
commit 1b5b5c5aaf
2 changed files with 3 additions and 3 deletions

View file

@ -961,6 +961,7 @@ QIcuCodec::QIcuCodec(const int mib)
#ifdef QICUCODEC_DEBUG #ifdef QICUCODEC_DEBUG
qWarning("QIcuCodec::QIcuCodec: internal error, could not find MIB for %d", mib); qWarning("QIcuCodec::QIcuCodec: internal error, could not find MIB for %d", mib);
#endif #endif
m_name = "latin1";
} }
QIcuCodec::~QIcuCodec() QIcuCodec::~QIcuCodec()

View file

@ -248,9 +248,8 @@ int runRcc(int argc, char *argv[])
// do the task // do the task
if (list) { if (list) {
const QStringList data = library.dataFiles(); foreach (const QString &path, library.dataFiles()) {
for (int i = 0; i < data.size(); ++i) { out.write(qPrintable(QDir::cleanPath(path)));
out.write(qPrintable(QDir::cleanPath(data.at(i))));
out.write("\n"); out.write("\n");
} }
return 0; return 0;