Commit c99e4886 authored by hjk's avatar hjk

BareMetal: Make some functions const

Change-Id: I8159888933bc0e87c100fdd20cb90b45f1e35888
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent 373a29d5
......@@ -148,7 +148,7 @@ GdbServerProvider *DefaultGdbServerProviderFactory::create()
return new DefaultGdbServerProvider;
}
bool DefaultGdbServerProviderFactory::canRestore(const QVariantMap &data)
bool DefaultGdbServerProviderFactory::canRestore(const QVariantMap &data) const
{
const auto id = idFromMap(data);
return id.startsWith(QLatin1String(Constants::DEFAULT_PROVIDER_ID)
......
......@@ -77,7 +77,7 @@ public:
GdbServerProvider *create() final;
bool canRestore(const QVariantMap &data) final;
bool canRestore(const QVariantMap &data) const final;
GdbServerProvider *restore(const QVariantMap &data) final;
GdbServerProviderConfigWidget *configurationWidget(GdbServerProvider *);
......
......@@ -117,7 +117,7 @@ public:
virtual GdbServerProvider *create() = 0;
virtual bool canRestore(const QVariantMap &data) = 0;
virtual bool canRestore(const QVariantMap &data) const = 0;
virtual GdbServerProvider *restore(const QVariantMap &data) = 0;
static QString idFromMap(const QVariantMap &data);
......
......@@ -232,7 +232,7 @@ GdbServerProvider *OpenOcdGdbServerProviderFactory::create()
return new OpenOcdGdbServerProvider;
}
bool OpenOcdGdbServerProviderFactory::canRestore(const QVariantMap &data)
bool OpenOcdGdbServerProviderFactory::canRestore(const QVariantMap &data) const
{
const QString id = idFromMap(data);
return id.startsWith(QLatin1String(Constants::OPENOCD_PROVIDER_ID)
......
......@@ -82,7 +82,7 @@ public:
GdbServerProvider *create() final;
bool canRestore(const QVariantMap &data) final;
bool canRestore(const QVariantMap &data) const final;
GdbServerProvider *restore(const QVariantMap &data) final;
GdbServerProviderConfigWidget *configurationWidget(GdbServerProvider *);
......
......@@ -224,7 +224,7 @@ GdbServerProvider *StLinkUtilGdbServerProviderFactory::create()
return new StLinkUtilGdbServerProvider;
}
bool StLinkUtilGdbServerProviderFactory::canRestore(const QVariantMap &data)
bool StLinkUtilGdbServerProviderFactory::canRestore(const QVariantMap &data) const
{
const QString id = idFromMap(data);
return id.startsWith(QLatin1String(Constants::STLINK_UTIL_PROVIDER_ID)
......
......@@ -88,7 +88,7 @@ public:
GdbServerProvider *create() final;
bool canRestore(const QVariantMap &data) final;
bool canRestore(const QVariantMap &data) const final;
GdbServerProvider *restore(const QVariantMap &data) final;
GdbServerProviderConfigWidget *configurationWidget(GdbServerProvider *);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment