diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-08-20 18:59:23 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-08-20 18:59:23 -0300 |
commit | f54ce8b89fb599dbf0c5bad7adcb58a867e7594f (patch) | |
tree | 18039e6ad58823628cc42e165189995653dc124c | |
parent | ffef36fe259606a91be17b52efa1d98fbfda7a7e (diff) |
- Correctly initialize and delete the AbstractMetaBuilder
- Fix typo in setSuppressWarning method
- Added setSilent method
-rw-r--r-- | apiextractor.cpp | 10 | ||||
-rw-r--r-- | apiextractor.h | 3 |
2 files changed, 10 insertions, 3 deletions
diff --git a/apiextractor.cpp b/apiextractor.cpp index 8c7ea145e..8a2805383 100644 --- a/apiextractor.cpp +++ b/apiextractor.cpp @@ -38,7 +38,7 @@ static bool preprocess(const QString& sourceFile, QFile& targetFile, const QStringList& includes); -ApiExtractor::ApiExtractor() +ApiExtractor::ApiExtractor() : m_builder(0) { // Environment TYPESYSTEMPATH QString envTypesystemPaths = getenv("TYPESYSTEMPATH"); @@ -49,6 +49,7 @@ ApiExtractor::ApiExtractor() ApiExtractor::~ApiExtractor() { + delete m_builder; } void ApiExtractor::addTypesystemSearchPath ( const QString& path ) @@ -76,11 +77,16 @@ void ApiExtractor::setDebugLevel(ReportHandler::DebugLevel debugLevel) ReportHandler::setDebugLevel(debugLevel); } -void ApiExtractor::setSupressWarnings ( bool value ) +void ApiExtractor::setSuppressWarnings ( bool value ) { TypeDatabase::instance()->setSuppressWarnings(value); } +void ApiExtractor::setSilent ( bool value ) +{ + ReportHandler::setSilent(value); +} + bool ApiExtractor::run() { if (m_builder) diff --git a/apiextractor.h b/apiextractor.h index cc98cd15a..8cad8f1da 100644 --- a/apiextractor.h +++ b/apiextractor.h @@ -39,7 +39,8 @@ public: void setTypeSystem(const QString& typeSystemFileName); void setCppFileName(const QString& cppFileName); void setDebugLevel(ReportHandler::DebugLevel debugLevel); - void setSupressWarnings(bool value); + void setSuppressWarnings(bool value); + void setSilent(bool value); void addTypesystemSearchPath(const QString& path); void addIncludePath(const QString& path); |