Commit 876de90b authored by Laurent Montel's avatar Laurent Montel 😁

Use c++11 style

parent de401b99
......@@ -26,24 +26,6 @@
#include <pimcommon/genericplugin.h>
class KAddressBookPluginInterfacePrivate
{
public:
KAddressBookPluginInterfacePrivate()
: kaddressBookPluginInterface(new KAddressBookPluginInterface)
{
}
~KAddressBookPluginInterfacePrivate()
{
delete kaddressBookPluginInterface;
}
KAddressBookPluginInterface *kaddressBookPluginInterface;
};
Q_GLOBAL_STATIC(KAddressBookPluginInterfacePrivate, sInstance)
KAddressBookPluginInterface::KAddressBookPluginInterface(QObject *parent)
: PimCommon::PluginInterface(parent)
, mMainWidget(nullptr)
......@@ -58,7 +40,8 @@ KAddressBookPluginInterface::~KAddressBookPluginInterface()
KAddressBookPluginInterface *KAddressBookPluginInterface::self()
{
return sInstance->kaddressBookPluginInterface;
static KAddressBookPluginInterface s_self;
return &s_self;
}
void KAddressBookPluginInterface::initializeInterfaceRequires(PimCommon::AbstractGenericPluginInterface *abstractInterface)
......
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