Skip to content

Commit 08b9189

Browse files
committed
f
1 parent f706d8c commit 08b9189

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CppInterOp/CppInterOp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,7 +2118,7 @@ void make_narg_ctor_with_return(const FunctionDecl* FD, const unsigned N,
21182118
// : new ClassName[nary];
21192119
// }
21202120
// else {
2121-
if (!CD->isDefaultConstructor() && CD->getNumParams() == 0) {
2121+
if (CD->getNumParams() == 0) {
21222122
callbuf << "if (nary > 1) {\n";
21232123
indent(callbuf, indent_level);
21242124
callbuf << "(*(" << class_name << "**)ret) = ";
@@ -2159,7 +2159,7 @@ void make_narg_ctor_with_return(const FunctionDecl* FD, const unsigned N,
21592159
//
21602160
callbuf << ";\n";
21612161
indent(callbuf, --indent_level);
2162-
if (!CD->isDefaultConstructor() && CD->getNumParams() == 0)
2162+
if (CD->getNumParams() == 0)
21632163
callbuf << "}\n";
21642164

21652165
//

0 commit comments

Comments
 (0)