RFC: singletons and memory management

Mark Kretschmann kretschmann at kde.org
Wed Sep 10 22:17:12 CEST 2008


On Wed, Sep 10, 2008 at 10:14 PM, Mark Kretschmann <kretschmann at kde.org> wrote:
> On Wed, Sep 10, 2008 at 10:06 PM, Jeff Mitchell
> <kde-dev at emailgoeshere.com> wrote:
>> Soren Harward wrote:
>>> <snip>
>>
>> Makes sense to me...
>
> Yep, to me as well.

Another option would be to make s_instance a QPointer. In that case
deleting s_instance would make it automatically 0.

-- 
Mark Kretschmann
Amarok Developer
www.kde.org - amarok.kde.org


More information about the Amarok-devel mailing list