From fc5f70dfb9181f9ebd1aa1990e2c3a20c0466266 Mon Sep 17 00:00:00 2001 From: Alan Garny Date: Wed, 30 Oct 2019 16:46:24 +0900 Subject: [PATCH] Some minor cleaning up. --- src/plugins/dataStore/DataStore/src/datastorepythonwrapper.cpp | 2 +- .../SimulationSupport/src/simulationsupportpythonwrapper.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/dataStore/DataStore/src/datastorepythonwrapper.cpp b/src/plugins/dataStore/DataStore/src/datastorepythonwrapper.cpp index 200a8bdc31..149af3a91e 100644 --- a/src/plugins/dataStore/DataStore/src/datastorepythonwrapper.cpp +++ b/src/plugins/dataStore/DataStore/src/datastorepythonwrapper.cpp @@ -213,7 +213,7 @@ static PyObject * DataStoreValuesDict_repr(DataStoreValuesDictObject *pValuesDic goto error; // NOLINT(cppcoreguidelines-avoid-goto, hicpp-avoid-goto) } - auto wrappedValue = PythonQtSupport::getInstanceWrapper(value); + PythonQtInstanceWrapper *wrappedValue = PythonQtSupport::getInstanceWrapper(value); if (wrappedValue != nullptr) { auto dataStoreValue = static_cast(wrappedValue->_objPointerCopy); diff --git a/src/plugins/support/SimulationSupport/src/simulationsupportpythonwrapper.cpp b/src/plugins/support/SimulationSupport/src/simulationsupportpythonwrapper.cpp index 511f73ab70..a87685b879 100644 --- a/src/plugins/support/SimulationSupport/src/simulationsupportpythonwrapper.cpp +++ b/src/plugins/support/SimulationSupport/src/simulationsupportpythonwrapper.cpp @@ -265,7 +265,7 @@ static PyObject *closeSimulation(PyObject *self, PyObject *args) if (PyTuple_Size(args) > 0) { #include "pythonbegin.h" - auto wrappedSimulation = PythonQtSupport::getInstanceWrapper(PyTuple_GET_ITEM(args, 0)); // NOLINT(cppcoreguidelines-pro-type-cstyle-cast) + PythonQtInstanceWrapper *wrappedSimulation = PythonQtSupport::getInstanceWrapper(PyTuple_GET_ITEM(args, 0)); // NOLINT(cppcoreguidelines-pro-type-cstyle-cast) #include "pythonend.h" if (wrappedSimulation != nullptr) {