forked from qt-creator/qt-creator
Python: remove static cast of client interface in client constructor
Change-Id: I475a2b79438b8392085f1d9bf2cdb8b7369efa68 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -181,9 +181,9 @@ PyLSClient *clientForPython(const FilePath &python)
|
||||
return client;
|
||||
}
|
||||
|
||||
PyLSClient::PyLSClient(BaseClientInterface *interface)
|
||||
PyLSClient::PyLSClient(PyLSInterface *interface)
|
||||
: Client(interface)
|
||||
, m_extraCompilerOutputDir(static_cast<PyLSInterface *>(interface)->m_extraPythonPath.path())
|
||||
, m_extraCompilerOutputDir(interface->m_extraPythonPath.path())
|
||||
{
|
||||
connect(this, &Client::initialized, this, &PyLSClient::updateConfiguration);
|
||||
connect(PythonSettings::instance(), &PythonSettings::pylsConfigurationChanged,
|
||||
|
||||
Reference in New Issue
Block a user