Fix BlackBerryConfigurationManager singleton

The usage of a static variable instead of a pointer guarantees it will be
constructed and destructed only once.

Change-Id: I7f587ec131b43fe5685122e9a384f1871dcdf790
Reviewed-by: Mehdi Fekari <mfekari@blackberry.com>
Reviewed-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Rafael Roquetto
2014-01-10 15:35:00 -02:00
committed by Tobias Hunger
parent 834c89329f
commit 5ee3d2da97
3 changed files with 2 additions and 7 deletions

View File

@@ -73,7 +73,6 @@ QNXPlugin::QNXPlugin()
QNXPlugin::~QNXPlugin()
{
delete BlackBerryDeviceConnectionManager::instance();
delete &BlackBerryConfigurationManager::instance();
}
bool QNXPlugin::initialize(const QStringList &arguments, QString *errorString)