From f18263a1116a7c612170917ba01b47b0288b540f Mon Sep 17 00:00:00 2001 From: Matthew Marine Date: Thu, 28 Sep 2023 08:59:06 -0400 Subject: [PATCH] Fix python --- wrapping/python/CxPybind/CxPybind/CxPybind.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrapping/python/CxPybind/CxPybind/CxPybind.hpp b/wrapping/python/CxPybind/CxPybind/CxPybind.hpp index 4c1b71f62c..8fc3f9861b 100644 --- a/wrapping/python/CxPybind/CxPybind/CxPybind.hpp +++ b/wrapping/python/CxPybind/CxPybind/CxPybind.hpp @@ -199,12 +199,12 @@ class Internals Application* getApp() { - return m_App; + return m_App.get(); } const Application* getApp() const { - return m_App; + return m_App.get(); } template @@ -281,7 +281,7 @@ class Internals std::unordered_map m_ParameterConversionMap; std::unordered_map> m_PluginFilterMap; std::unordered_map> m_PythonPlugins; - Application* m_App; + std::shared_ptr m_App; }; inline py::dict ConvertArgsToDict(const Internals& internals, const Parameters& parameters, const Arguments& args)