~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to libs/pigment/KoColorTransformationFactoryRegistry.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include "KoColorTransformationFactory.h"
23
23
 
24
 
struct KoColorTransformationFactoryRegistry::Private
25
 
{
 
24
struct KoColorTransformationFactoryRegistry::Private {
26
25
    static KoColorTransformationFactoryRegistry* s_registry;
27
26
};
28
27
 
44
43
    instance()->add(factory);
45
44
}
46
45
 
 
46
void KoColorTransformationFactoryRegistry::removeColorTransformationFactory(KoColorTransformationFactory* factory)
 
47
{
 
48
    instance()->remove(factory->id());
 
49
}
 
50
 
47
51
KoColorTransformationFactoryRegistry* KoColorTransformationFactoryRegistry::instance()
48
52
{
49
 
    if(Private::s_registry == 0)
50
 
    {
 
53
    if (Private::s_registry == 0) {
51
54
        Private::s_registry = new KoColorTransformationFactoryRegistry();
52
55
    }
53
56
    return Private::s_registry;