From 09a312b7788a81e0af59fc090666aea37b71fff7 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Tue, 25 Aug 2009 17:02:39 -0300 Subject: Changed acess to preprocessor file, to be reused in the same process. --- apiextractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiextractor.cpp b/apiextractor.cpp index 153d0da3c..97fa2a65d 100644 --- a/apiextractor.cpp +++ b/apiextractor.cpp @@ -207,7 +207,7 @@ static bool preprocess(const QString& sourceFile, QDir::setCurrent(currentDir); - if (!targetFile.open(QIODevice::WriteOnly | QIODevice::Text)) { + if (!targetFile.open(QIODevice::ReadWrite | QIODevice::Text)) { std::cerr << "Failed to write preprocessed file: " << qPrintable(targetFile.fileName()) << std::endl; return false; } -- cgit v1.2.3