From db29a857e3734f6d36d3d8cd919574a0dd286ad9 Mon Sep 17 00:00:00 2001 From: Luciano Wolf Date: Wed, 25 Aug 2010 11:43:31 -0300 Subject: Avoid removing temporary file when in DEBUG mode. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Renato Araújo Hugo Parente Lima --- apiextractor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apiextractor.cpp b/apiextractor.cpp index a8fe38b4d..700e85072 100644 --- a/apiextractor.cpp +++ b/apiextractor.cpp @@ -216,6 +216,9 @@ bool ApiExtractor::run() } QTemporaryFile ppFile; +#ifndef NDEBUG + ppFile.setAutoRemove(false); +#endif // run rpp pre-processor if (!preprocess(m_cppFileName, ppFile, m_includePaths)) { std::cerr << "Preprocessor failed on file: " << qPrintable(m_cppFileName); -- cgit v1.2.3