diff options
author | David Schulz <david.schulz@qt.io> | 2022-06-15 12:44:44 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2022-06-20 13:11:31 +0000 |
commit | 591fc12ffa094e1da419abc0b0acf1931e504608 (patch) | |
tree | 9fc7dea0b3afd6afc9c3ddb2d7631051b6a5dca4 /src/plugins/python/pythonlanguageclient.cpp | |
parent | e74999ccedd6ea529ca4f21fe4e881bede57bcb0 (diff) | |
download | qt-creator-591fc12ffa094e1da419abc0b0acf1931e504608.tar.gz |
Python: remove static cast of client interface in client constructor
Change-Id: I475a2b79438b8392085f1d9bf2cdb8b7369efa68
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/python/pythonlanguageclient.cpp')
-rw-r--r-- | src/plugins/python/pythonlanguageclient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index b129a06904..2a4ea8c7d9 100644 --- a/src/plugins/python/pythonlanguageclient.cpp +++ b/src/plugins/python/pythonlanguageclient.cpp @@ -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, |