aboutsummaryrefslogtreecommitdiffstats
path: root/apiextractor.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-08-20 18:59:23 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-08-20 18:59:23 -0300
commitf54ce8b89fb599dbf0c5bad7adcb58a867e7594f (patch)
tree18039e6ad58823628cc42e165189995653dc124c /apiextractor.cpp
parentffef36fe259606a91be17b52efa1d98fbfda7a7e (diff)
- Correctly initialize and delete the AbstractMetaBuilder
- Fix typo in setSuppressWarning method - Added setSilent method
Diffstat (limited to 'apiextractor.cpp')
-rw-r--r--apiextractor.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/apiextractor.cpp b/apiextractor.cpp
index 8c7ea145..8a280538 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)