aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-09-28 14:04:03 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-10-16 17:33:20 -0300
commit87175f67dead62f770747f7dce4621d5ebc72d57 (patch)
treee29d1d3adb5ae571c9c4ca66ab6e4d709068dd16 /abstractmetalang.cpp
parente2a2130624b143b35dd3beba8d4ff5527cf47b0d (diff)
Add method AbstractMetaFunction::isCastOperator.
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 a2c9a9cb..ccb7352a 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())