diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/addedfunction.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/addedfunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/addedfunction.cpp b/sources/shiboken6/ApiExtractor/addedfunction.cpp index 6525c1ed7..3f781bf56 100644 --- a/sources/shiboken6/ApiExtractor/addedfunction.cpp +++ b/sources/shiboken6/ApiExtractor/addedfunction.cpp @@ -182,7 +182,7 @@ AddedFunction::AddedFunctionPtr arguments.append({type, p.name, p.defaultValue}); } - AddedFunctionPtr result(new AddedFunction(name, arguments, returnType)); + auto result = std::make_shared<AddedFunction>(name, arguments, returnType); result->setConstant(isConst); return result; } |
