aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-04-14 15:51:22 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:09:59 -0300
commit97bff103c6de76a80088083ed2b909527f32c50f (patch)
treed452bb54983376ac9df2db8a08676a43d9ed432e /abstractmetabuilder.cpp
parent523a07f9b6c10dcd7809523e2491241bc2c1992a (diff)
Removed methods includeFile and setIncludeFile from AbstractMetaAttribute.
These methods were moved to AbstractMetaFunction, because they are created to store the include file of global enums and functions, but for enums, we store the include file in TypeEntry, as functions doesn't have TypeEntries, only global functions need this. Also the new version of includeFile returns a instance of Include class instead of a QString.
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index e33540e3..182f4456 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -509,7 +509,8 @@ bool AbstractMetaBuilder::build(QIODevice* input)
AbstractMetaFunction* metaFunc = traverseFunction(func);
if (metaFunc) {
- metaFunc->setIncludeFile(func->fileName());
+ QFileInfo info(func->fileName());
+ metaFunc->setIncludeFile(Include(Include::IncludePath, info.fileName()));
m_globalFunctions << metaFunc;
}
}
@@ -903,8 +904,6 @@ AbstractMetaEnum *AbstractMetaBuilder::traverseEnum(EnumModelItem enumItem, Abst
default: break;
}
- metaEnum->setIncludeFile(enumItem->fileName());
-
ReportHandler::debugMedium(QString(" - traversing enum %1").arg(metaEnum->fullName()));
foreach (EnumeratorModelItem value, enumItem->enumerators()) {