aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'typesystem.h')
-rw-r--r--typesystem.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/typesystem.h b/typesystem.h
index 6961cbda5..5b0e7ca7b 100644
--- a/typesystem.h
+++ b/typesystem.h
@@ -310,7 +310,7 @@ struct APIEXTRACTOR_API Modification
VirtualSlot = 0x10000 | NonFinal
};
- Modification() : modifiers(0) { }
+ Modification() : modifiers(0), removal(TypeSystem::NoLanguage) { }
bool isAccessModifier() const
{
@@ -368,22 +368,24 @@ struct APIEXTRACTOR_API Modification
return modifiers & Rename;
}
+ bool isRemoveModifier() const
+ {
+ return removal != TypeSystem::NoLanguage;
+ }
+
uint modifiers;
QString renamedToName;
+ TypeSystem::Language removal;
};
struct APIEXTRACTOR_API FunctionModification: public Modification
{
- FunctionModification(double vr) : removal(TypeSystem::NoLanguage), m_thread(false), m_allowThread(false), m_version(vr) {}
+ FunctionModification(double vr) : m_thread(false), m_allowThread(false), m_version(vr) {}
bool isCodeInjection() const
{
return modifiers & CodeInjection;
}
- bool isRemoveModifier() const
- {
- return removal != TypeSystem::NoLanguage;
- }
void setIsThread(bool flag)
{
m_thread = flag;
@@ -414,7 +416,6 @@ struct APIEXTRACTOR_API FunctionModification: public Modification
QString signature;
QString association;
CodeSnipList snips;
- TypeSystem::Language removal;
QList<ArgumentModification> argument_mods;