mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #144 Util class, deleting temp files when application shuts down. First used with soundgenerator's temp. wav-files
This commit is contained in:
14
src/blackmisc/filedeleter.cpp
Normal file
14
src/blackmisc/filedeleter.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <QFile>
|
||||
#include "filedeleter.h"
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
CFileDeleter::~CFileDeleter()
|
||||
{
|
||||
foreach(const QString fn, this->m_fileNames)
|
||||
{
|
||||
QFile f(fn);
|
||||
f.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user