mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +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
|
||||
qWarning("QIcuCodec::QIcuCodec: internal error, could not find MIB for %d", mib);
|
||||
#endif
|
||||
m_name = "latin1";
|
||||
}
|
||||
|
||||
QIcuCodec::~QIcuCodec()
|
||||
|
|
|
@ -248,9 +248,8 @@ int runRcc(int argc, char *argv[])
|
|||
|
||||
// do the task
|
||||
if (list) {
|
||||
const QStringList data = library.dataFiles();
|
||||
for (int i = 0; i < data.size(); ++i) {
|
||||
out.write(qPrintable(QDir::cleanPath(data.at(i))));
|
||||
foreach (const QString &path, library.dataFiles()) {
|
||||
out.write(qPrintable(QDir::cleanPath(path)));
|
||||
out.write("\n");
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue