From 7e815bfcc41d25b2d8c7c34d1bb6bd566e4b2816 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Tue, 25 Aug 2009 14:14:24 -0300 Subject: - Rewind the file pointer before runing the parser. - Fixed some code style issues. --- apiextractor.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apiextractor.cpp b/apiextractor.cpp index b81689baf..153d0da3c 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; -- cgit v1.2.3