mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
use foreach() for iteration in runcRcc()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
485f746c43
commit
1b5b5c5aaf
2 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue