diff options
| author | Tannin <devnull@localhost> | 2015-05-17 14:03:01 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-05-17 14:03:01 +0200 |
| commit | 268d2ffe8b533890b408740db1a6a3730dfd8597 (patch) | |
| tree | 889aec6383b1880cb99b3cd8ebe014485661d8e5 /src/organizercore.cpp | |
| parent | 9d3364f4da3fe77113147d9350c0e8c8c7f7a637 (diff) | |
- some code cleanup and modernization trying to fix "dr memory" reports
(though they were almost certainly false positives)
- there is now a 50ms timeout on logging messages
- bugfix: leaked handles after directory searches
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp index ce0b8c5f..c065e587 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -1182,7 +1182,7 @@ void OrganizerCore::updateModActiveState(int index, bool active) {
ModInfo::Ptr modInfo = ModInfo::getByIndex(index);
QDir dir(modInfo->absolutePath());
- foreach (const QString &esm, dir.entryList(QStringList() << "*.esm", QDir::Files)) {
+ for (const QString &esm : dir.entryList(QStringList() << "*.esm", QDir::Files)) {
m_PluginList.enableESP(esm, active);
}
int enabled = 0;
|
