Commit 183d4378 authored by Laurent Montel's avatar Laurent Montel 😁

not necessary to use private class here

parent 2d9003dd
......@@ -19,33 +19,21 @@
#include "shorturlengineplugin.h"
class ShortUrlEnginePluginPrivate
{
public:
ShortUrlEnginePluginPrivate()
{
}
QString name;
};
ShortUrlEnginePlugin::ShortUrlEnginePlugin(QObject *parent)
: QObject(parent)
, d(new ShortUrlEnginePluginPrivate)
{
}
ShortUrlEnginePlugin::~ShortUrlEnginePlugin()
{
delete d;
}
QString ShortUrlEnginePlugin::pluginName() const
{
return d->name;
return mName;
}
void ShortUrlEnginePlugin::setPluginName(const QString &pluginname)
{
d->name = pluginname;
mName = pluginname;
}
......@@ -36,6 +36,6 @@ public:
void setPluginName(const QString &pluginname);
private:
ShortUrlEnginePluginPrivate *const d;
QString mName;
};
#endif // SHORTURLENGINEPLUGIN_H
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