aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cppgenerator.cpp2
-rw-r--r--shibokengenerator.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 0ce92724e..e07dd2ada 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -955,7 +955,7 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f
s << endl;
}
- if (func->functionType() != AbstractMetaFunction::UserAddedFunction) {
+ if (!func->isUserAdded()) {
bool badModifications = false;
QStringList userArgs;
if (!func->isCopyConstructor()) {
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp
index 58a3bf518..411c59b37 100644
--- a/shibokengenerator.cpp
+++ b/shibokengenerator.cpp
@@ -991,7 +991,7 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s,
// calls to %FUNCTION_NAME on user written custom code for calls to the protected
// dispatcher.
bool hasProtectedOverload = false;
- if (func->functionType() == AbstractMetaFunction::UserAddedFunction) {
+ if (func->isUserAdded()) {
foreach (const AbstractMetaFunction* f, getFunctionOverloads(func->ownerClass(), func->name()))
hasProtectedOverload |= f->isProtected();
}