aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-20 13:54:36 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-20 15:56:38 -0200
commitab2840dfef7bcab2dca312092748326e3f7ce6cf (patch)
treea257adaa3ae447e7349061ada9d2963e92b12e9d /abstractmetalang.cpp
parentce806c195494dc0c3c727d508378a434b5a676c6 (diff)
When a constructor able to trigger implicity conversions is removed
it should not appear in the implicity conversion list. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'abstractmetalang.cpp')
-rw-r--r--abstractmetalang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index 101b97cf..725a4adc 100644
--- a/abstractmetalang.cpp
+++ b/abstractmetalang.cpp
@@ -1105,7 +1105,7 @@ AbstractMetaFunctionList AbstractMetaClass::implicitConversions() const
AbstractMetaFunctionList list = queryFunctions(Constructors);
AbstractMetaFunctionList returned;
foreach (AbstractMetaFunction *f, list) {
- if (f->arguments().size() == 1 && !f->isExplicit() && !f->isCopyConstructor() && hasCloneOperator())
+ if (f->arguments().size() == 1 && !f->isExplicit() && !f->isCopyConstructor() && !f->isModifiedRemoved() && hasCloneOperator())
returned += f;
}
return returned;