forked from qt-creator/qt-creator
LanguageClient: fix todo
Change-Id: Ia6b3b5fe6e595c32a8b8a13b869f3178afb37ed8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -581,7 +581,7 @@ Client *BaseSettings::createClient(ProjectExplorer::Project *project) const
|
||||
{
|
||||
if (!isValid() || !m_enabled)
|
||||
return nullptr;
|
||||
BaseClientInterface *interface = createInterfaceWithProject(project);
|
||||
BaseClientInterface *interface = createInterface(project);
|
||||
QTC_ASSERT(interface, return nullptr);
|
||||
auto *client = createClient(interface);
|
||||
client->setName(Utils::globalMacroExpander()->expand(m_name));
|
||||
@@ -592,6 +592,11 @@ Client *BaseSettings::createClient(ProjectExplorer::Project *project) const
|
||||
return client;
|
||||
}
|
||||
|
||||
BaseClientInterface *BaseSettings::createInterface(ProjectExplorer::Project *) const
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Client *BaseSettings::createClient(BaseClientInterface *interface) const
|
||||
{
|
||||
return new Client(interface);
|
||||
@@ -772,7 +777,7 @@ Utils::CommandLine StdIOSettings::command() const
|
||||
return Utils::CommandLine(m_executable, arguments(), Utils::CommandLine::Raw);
|
||||
}
|
||||
|
||||
BaseClientInterface *StdIOSettings::createInterfaceWithProject(ProjectExplorer::Project *project) const
|
||||
BaseClientInterface *StdIOSettings::createInterface(ProjectExplorer::Project *project) const
|
||||
{
|
||||
auto interface = new StdIOClientInterface;
|
||||
interface->setCommandLine(command());
|
||||
|
||||
Reference in New Issue
Block a user