Plugins: Code cosmetics

Get closer to a uniform pattern of code layout (public/private,
pimpl naming...)

Change-Id: If2bc6dcee3df9127274f479b4ebc270d283dcb65
Reviewed-by: Xing Xiong
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-02-21 14:59:57 +01:00
parent 095df95bfa
commit b5c3ce57ca
12 changed files with 29 additions and 60 deletions

View File

@@ -46,7 +46,7 @@ using namespace ProjectExplorer;
namespace BareMetal {
namespace Internal {
class BareMetalPluginRunData
class BareMetalPluginPrivate
{
public:
BareMetalDeviceFactory deviceFactory;
@@ -56,14 +56,9 @@ public:
GdbServerProviderManager gdbServerProviderManager;
};
BareMetalPlugin::BareMetalPlugin()
{
setObjectName(QLatin1String("BareMetalPlugin"));
}
BareMetalPlugin::~BareMetalPlugin()
{
delete m_runData;
delete d;
}
bool BareMetalPlugin::initialize(const QStringList &arguments, QString *errorString)
@@ -71,7 +66,7 @@ bool BareMetalPlugin::initialize(const QStringList &arguments, QString *errorStr
Q_UNUSED(arguments)
Q_UNUSED(errorString)
m_runData = new BareMetalPluginRunData;
d = new BareMetalPluginPrivate;
auto constraint = [](RunConfiguration *runConfig) {
const QByteArray idStr = runConfig->id().name();