aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'abstractmetalang.cpp')
-rw-r--r--abstractmetalang.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index a2c9a9cb3..ccb7352a4 100644
--- a/abstractmetalang.cpp
+++ b/abstractmetalang.cpp
@@ -729,6 +729,11 @@ bool AbstractMetaFunction::isOperatorOverload(QString funcName)
return opRegEx.indexIn(funcName) > -1;
}
+bool AbstractMetaFunction::isCastOperator() const
+{
+ return originalName().startsWith("operator ");
+}
+
bool AbstractMetaFunction::isArithmeticOperator() const
{
if (!isOperatorOverload())