aboutsummaryrefslogtreecommitdiffstats
path: root/apiextractor.cpp
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2009-08-25 17:02:39 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2009-08-25 17:02:39 -0300
commit09a312b7788a81e0af59fc090666aea37b71fff7 (patch)
tree862aecc296e9016bb5c707bd77f23e5984be0167 /apiextractor.cpp
parent7f14990c36bec778efbb51c4ed400d10cc1d51c4 (diff)
Changed acess to preprocessor file, to be reused in the same process.
Diffstat (limited to 'apiextractor.cpp')
-rw-r--r--apiextractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/apiextractor.cpp b/apiextractor.cpp
index 153d0da3..97fa2a65 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;
}