1370b324cSopenharmony_ci// TempFiles.cpp 2370b324cSopenharmony_ci 3370b324cSopenharmony_ci#include "StdAfx.h" 4370b324cSopenharmony_ci 5370b324cSopenharmony_ci#include "../../../Windows/FileDir.h" 6370b324cSopenharmony_ci 7370b324cSopenharmony_ci#include "TempFiles.h" 8370b324cSopenharmony_ci 9370b324cSopenharmony_ciusing namespace NWindows; 10370b324cSopenharmony_ciusing namespace NFile; 11370b324cSopenharmony_ci 12370b324cSopenharmony_civoid CTempFiles::Clear() 13370b324cSopenharmony_ci{ 14370b324cSopenharmony_ci while (!Paths.IsEmpty()) 15370b324cSopenharmony_ci { 16370b324cSopenharmony_ci NDir::DeleteFileAlways(Paths.Back()); 17370b324cSopenharmony_ci Paths.DeleteBack(); 18370b324cSopenharmony_ci } 19370b324cSopenharmony_ci} 20