Initialization of QSharedDataPointer's for empty objects (i.e. Foo::Foo(void))

Sune Vuorela nospam at
Mon Apr 29 21:11:07 BST 2013

On 2013-04-29, Milian Wolff <mail at> wrote:
> I do wonder though why QString has both, a shared_empty and a shared_null 
> object. A single one should suffice for most objects, no?

I'm pretty sure this is because QString can be empty and not null.

e.g. the difference between QString() the empty string.


More information about the kde-core-devel mailing list