~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to akregator/interfaces/storagefactoryregistry.cpp

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "storagefactoryregistry.h"
26
26
#include "storagefactory.h"
27
27
 
28
 
#include <k3staticdeleter.h>
29
 
 
30
28
#include <QHash>
31
29
#include <QString>
32
30
#include <QStringList>
41
39
};
42
40
 
43
41
StorageFactoryRegistry* StorageFactoryRegistry::m_instance = 0;
44
 
static K3StaticDeleter<StorageFactoryRegistry> storagefactoryregistrysd;
45
42
 
46
43
StorageFactoryRegistry* StorageFactoryRegistry::self()
47
44
{
 
45
    static StorageFactoryRegistry instance;
48
46
    if (!m_instance)
49
 
        m_instance = storagefactoryregistrysd.setObject(m_instance, new StorageFactoryRegistry);
 
47
        m_instance = &instance;
50
48
    return m_instance;
51
49
}
52
50