Skip to content

Commit 46d7e6e

Browse files
YuriUfimtsevusiems
authored andcommitted
Cleanup
1 parent 4da3fd8 commit 46d7e6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generator/abstractmetabuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1973,7 +1973,7 @@ AbstractMetaType::shared_pointer AbstractMetaBuilder::inheritTemplateType(const
19731973
if (returned->hasInstantiations()) {
19741974
auto instantiations = returned->instantiations();
19751975
for (int i=0; i<instantiations.count(); ++i) {
1976-
instantiations[i] = AbstractMetaType::shared_pointer(inheritTemplateType(template_types, instantiations[i], ok));
1976+
instantiations[i] = inheritTemplateType(template_types, instantiations[i], ok);
19771977
if (ok != 0 && !(*ok))
19781978
return 0;
19791979
}

generator/shellimplgenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void ShellImplGenerator::write(QTextStream &s, const AbstractMetaClass *meta_cla
123123

124124
AbstractMetaFunctionList virtualsForShell = getVirtualFunctionsForShell(meta_class);
125125
foreach (const AbstractMetaFunction *fun, virtualsForShell) {
126-
bool hasReturnValue = (fun->type());
126+
bool hasReturnValue = !fun->type().isNull();
127127
writeFunctionSignature(s, fun, meta_class, QString(),
128128
Option(OriginalName | ShowStatic | UnderscoreSpaces | UseIndexedName),
129129
"PythonQtShell_");

0 commit comments

Comments
 (0)