diff --git a/qt/widgets/mplcpp/src/Colormap.cpp b/qt/widgets/mplcpp/src/Colormap.cpp index 14f5fc8261e143ee4b545dada630883771977412..e1da71ebf63ca17a021c065a3ca26c94422e1d7b 100644 --- a/qt/widgets/mplcpp/src/Colormap.cpp +++ b/qt/widgets/mplcpp/src/Colormap.cpp @@ -19,7 +19,7 @@ Colormap::Colormap(Python::Object obj) * @return A reference to the matplotlib.cm module */ Python::Object cmModule() { - static Python::Object cmModule{ + Python::Object cmModule{ Python::NewRef(PyImport_ImportModule("matplotlib.cm"))}; return cmModule; } diff --git a/qt/widgets/mplcpp/src/Colors.cpp b/qt/widgets/mplcpp/src/Colors.cpp index e716eea88e150e72aa1992bc5263e5894850b91d..9122de96d55428b084e26fd8bc1803fa312e49ff 100644 --- a/qt/widgets/mplcpp/src/Colors.cpp +++ b/qt/widgets/mplcpp/src/Colors.cpp @@ -12,7 +12,7 @@ namespace { * @return A reference to the matplotlib.colors module */ Python::Object colorsModule() { - static Python::Object colorsModule{ + Python::Object colorsModule{ Python::NewRef(PyImport_ImportModule("matplotlib.colors"))}; return colorsModule; } diff --git a/qt/widgets/mplcpp/src/Figure.cpp b/qt/widgets/mplcpp/src/Figure.cpp index eee54ab144a6ff4fbee5de8d4a4c96520dc6b88a..5e1fb6f3a5de4e9e0371f051ea6047902140ae91 100644 --- a/qt/widgets/mplcpp/src/Figure.cpp +++ b/qt/widgets/mplcpp/src/Figure.cpp @@ -6,7 +6,7 @@ namespace MplCpp { namespace { Python::Object newFigure(bool tightLayout = true) { - static Python::Object figureModule{ + Python::Object figureModule{ Python::NewRef(PyImport_ImportModule("matplotlib.figure"))}; auto fig = figureModule.attr("Figure")(); if (tightLayout) {