RFC: singletons and memory management
Ian Monroe
ian at monroe.nu
Wed Sep 10 23:38:06 CEST 2008
On Wed, Sep 10, 2008 at 2:50 PM, Soren Harward <stharward at gmail.com> wrote:
> void Singleton::destroy() {
> if (s_instance) {
> delete s_instance;
> s_instance = 0;
> }
> }
There is an assumption in Amarok code that singleton's exist. I don't
feel like having lots of
if (The::playlistModel() )
The::playlistModel()->something()
Granted QPointer's aren't any trouble at all, so why not.
Ian
More information about the Amarok-devel
mailing list