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

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


On 2013-04-29, Milian Wolff <mail at milianw.de> 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.

/Sune





More information about the kde-core-devel mailing list