aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apiextractor.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/apiextractor.cpp b/apiextractor.cpp
index b81689ba..153d0da3 100644
--- a/apiextractor.cpp
+++ b/apiextractor.cpp
@@ -52,23 +52,23 @@ ApiExtractor::~ApiExtractor()
delete m_builder;
}
-void ApiExtractor::addTypesystemSearchPath ( const QString& path )
+void ApiExtractor::addTypesystemSearchPath (const QString& path)
{
TypeDatabase::instance()->addTypesystemPath(path);
}
-void ApiExtractor::addTypesystemSearchPath ( const QStringList& paths )
+void ApiExtractor::addTypesystemSearchPath(const QStringList& paths)
{
foreach (QString path, paths)
addTypesystemSearchPath(path);
}
-void ApiExtractor::addIncludePath ( const QString& path )
+void ApiExtractor::addIncludePath(const QString& path)
{
m_includePaths << path;
}
-void ApiExtractor::addIncludePath ( const QStringList& paths )
+void ApiExtractor::addIncludePath(const QStringList& paths)
{
m_includePaths << paths;
}
@@ -154,6 +154,7 @@ bool ApiExtractor::run()
std::cerr << "Preprocessor failed on file: " << qPrintable(m_cppFileName);
return 1;
}
+ ppFile.seek(0);
m_builder = new AbstractMetaBuilder;
m_builder->build(&ppFile);
return true;