aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-01-29 16:23:51 -0300
committerHugo Lima <hugo.lima@openbossa.org>2010-01-29 16:40:37 -0200
commit5d456d500f3e142902523df2157bbef1b82bfe1a (patch)
tree7942a798fde4d830304f37e204d8868b029ce570 /abstractmetalang.cpp
parent9d4b69933df49c778e4b96a23894f26d4f741283 (diff)
Fixed implicitly conversion retrieve values, for accept constructors with default arguments.
Reviewed by Hugo Parente <hugo.lima@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 34a4f220..89934ec8 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() && !f->isModifiedRemoved() && hasCloneOperator())
+ if ((f->actualMinimumArgumentCount() == 1 || f->arguments().size() == 1) && !f->isExplicit() && !f->isCopyConstructor() && !f->isModifiedRemoved() && hasCloneOperator())
returned += f;
}
return returned;