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,
|
||||
|
@@ -40,12 +40,13 @@ namespace Internal {
|
||||
|
||||
class PySideUicExtraCompiler;
|
||||
class PythonLanguageServerState;
|
||||
class PyLSInterface;
|
||||
|
||||
class PyLSClient : public LanguageClient::Client
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit PyLSClient(LanguageClient::BaseClientInterface *interface);
|
||||
explicit PyLSClient(PyLSInterface *interface);
|
||||
~PyLSClient();
|
||||
|
||||
void openDocument(TextEditor::TextDocument *document) override;
|
||||
|
Reference in New Issue
Block a user