mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:36:30 +02:00
Coding standard fun!
This commit is contained in:
parent
be0446f9a9
commit
9641ae8cd8
1 changed files with 15 additions and 17 deletions
|
@ -87,15 +87,13 @@ void FilePersistThread::rollFileIfNecessary(QFile& file, bool notifyListenersIfR
|
|||
foreach(QFileInfo dirItm, filesInDir){
|
||||
if (totalSizeOfDir < MAX_LOG_DIR_SIZE){
|
||||
totalSizeOfDir += dirItm.size();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
QFile file(dirItm.filePath());
|
||||
file.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool FilePersistThread::processQueueItems(const Queue& messages) {
|
||||
QFile file(_logger._fileName);
|
||||
rollFileIfNecessary(file);
|
||||
|
|
Loading…
Reference in a new issue