forked from qt-creator/qt-creator
bare-metal: Return initializier lists instead of ctors
Change-Id: Ifc764130ca9c20f77ae1e1549fddba41a900150a Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -182,7 +182,7 @@ IDevice::Ptr BareMetalDeviceFactory::create() const
|
|||||||
{
|
{
|
||||||
BareMetalDeviceConfigurationWizard wizard;
|
BareMetalDeviceConfigurationWizard wizard;
|
||||||
if (wizard.exec() != QDialog::Accepted)
|
if (wizard.exec() != QDialog::Accepted)
|
||||||
return IDevice::Ptr();
|
return {};
|
||||||
return wizard.device();
|
return wizard.device();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -133,12 +133,12 @@ void GdbServerProvider::setResetCommands(const QString &cmds)
|
|||||||
|
|
||||||
QString GdbServerProvider::executable() const
|
QString GdbServerProvider::executable() const
|
||||||
{
|
{
|
||||||
return QString();
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList GdbServerProvider::arguments() const
|
QStringList GdbServerProvider::arguments() const
|
||||||
{
|
{
|
||||||
return QStringList();
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GdbServerProvider::operator==(const GdbServerProvider &other) const
|
bool GdbServerProvider::operator==(const GdbServerProvider &other) const
|
||||||
|
@@ -105,7 +105,7 @@ QString OpenOcdGdbServerProvider::channel() const
|
|||||||
return args.join(QLatin1Char(' '));
|
return args.join(QLatin1Char(' '));
|
||||||
}
|
}
|
||||||
default: // wrong
|
default: // wrong
|
||||||
return QString();
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -83,7 +83,7 @@ QString StLinkUtilGdbServerProvider::defaultInitCommands()
|
|||||||
|
|
||||||
QString StLinkUtilGdbServerProvider::defaultResetCommands()
|
QString StLinkUtilGdbServerProvider::defaultResetCommands()
|
||||||
{
|
{
|
||||||
return QLatin1String("");
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
QString StLinkUtilGdbServerProvider::typeDisplayName() const
|
QString StLinkUtilGdbServerProvider::typeDisplayName() const
|
||||||
@@ -101,9 +101,9 @@ QString StLinkUtilGdbServerProvider::channel() const
|
|||||||
return m_host + QLatin1Char(':') + QString::number(m_port);
|
return m_host + QLatin1Char(':') + QString::number(m_port);
|
||||||
case StartupOnPipe:
|
case StartupOnPipe:
|
||||||
// Unsupported mode
|
// Unsupported mode
|
||||||
return QString();
|
return {};
|
||||||
default: // wrong
|
default: // wrong
|
||||||
return QString();
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user