This is so-called Scott Mayers' singleton pattern.
}
};
-FrameFactory FrameFactory::factory;
-
////////////////////////////////////////////////////////////////////////////////
// public members
////////////////////////////////////////////////////////////////////////////////
FrameFactory *FrameFactory::instance()
{
+ static FrameFactory factory;
return &factory;
}
fields.append(String());
frame->setText(newfields);
-
}
{
public:
static FrameFactory *instance();
+
/*!
* Create a frame based on \a data. \a synchSafeInts should only be set
* false if we are parsing an old tag (v2.3 or older) that does not support
void updateGenre(TextIdentificationFrame *frame) const;
- static FrameFactory factory;
-
class FrameFactoryPrivate;
FrameFactoryPrivate *d;
};