Skip to content

Commit 07bec80

Browse files
Remove unnecessary return value policies
1 parent 5638a5e commit 07bec80

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/mobase/wrappers/basic_classes.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -812,11 +812,9 @@ namespace mo2::python {
812812
.def("isPortable", &IInstance::isPortable);
813813

814814
py::class_<IInstanceManager>(m, "IInstanceManager")
815-
.def("currentInstance", &IInstanceManager::currentInstance,
816-
py::return_value_policy::reference)
815+
.def("currentInstance", &IInstanceManager::currentInstance)
817816
.def("globalInstancePaths", &IInstanceManager::globalInstancePaths)
818-
.def("getGlobalInstance", &IInstanceManager::getGlobalInstance,
819-
py::return_value_policy::reference);
817+
.def("getGlobalInstance", &IInstanceManager::getGlobalInstance);
820818
}
821819

822820
void add_idownload_manager_classes(py::module_ m)

0 commit comments

Comments
 (0)