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;
|
||||
if (wizard.exec() != QDialog::Accepted)
|
||||
return IDevice::Ptr();
|
||||
return {};
|
||||
return wizard.device();
|
||||
}
|
||||
|
||||
|
@@ -133,12 +133,12 @@ void GdbServerProvider::setResetCommands(const QString &cmds)
|
||||
|
||||
QString GdbServerProvider::executable() const
|
||||
{
|
||||
return QString();
|
||||
return {};
|
||||
}
|
||||
|
||||
QStringList GdbServerProvider::arguments() const
|
||||
{
|
||||
return QStringList();
|
||||
return {};
|
||||
}
|
||||
|
||||
bool GdbServerProvider::operator==(const GdbServerProvider &other) const
|
||||
|
@@ -105,7 +105,7 @@ QString OpenOcdGdbServerProvider::channel() const
|
||||
return args.join(QLatin1Char(' '));
|
||||
}
|
||||
default: // wrong
|
||||
return QString();
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -83,7 +83,7 @@ QString StLinkUtilGdbServerProvider::defaultInitCommands()
|
||||
|
||||
QString StLinkUtilGdbServerProvider::defaultResetCommands()
|
||||
{
|
||||
return QLatin1String("");
|
||||
return {};
|
||||
}
|
||||
|
||||
QString StLinkUtilGdbServerProvider::typeDisplayName() const
|
||||
@@ -101,9 +101,9 @@ QString StLinkUtilGdbServerProvider::channel() const
|
||||
return m_host + QLatin1Char(':') + QString::number(m_port);
|
||||
case StartupOnPipe:
|
||||
// Unsupported mode
|
||||
return QString();
|
||||
return {};
|
||||
default: // wrong
|
||||
return QString();
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user