[Development] Question about QCoreApplicationData::*_libpaths

Thiago Macieira thiago.macieira at intel.com
Wed Jan 6 01:47:16 CET 2016


On Tuesday 05 January 2016 15:55:43 Marc Mutz wrote:
> On Tuesday 05 January 2016 14:41:52 Thiago Macieira wrote:
> > On Tuesday 05 January 2016 15:37:51 Marc Mutz wrote:
> > > On Tuesday 05 January 2016 12:56:55 Ulf Hermann wrote:
> > > > avoid paying the price of constructing a QStringList if they are
> > > > unused.
> > > 
> > > That's what I was wondering about: constructing a QStringList is just a
> > > copy of a pointer, and while not totally free, it is next to nothing
> > > compared to the additional heap allocation of a new'ed QStringList...
> > 
> > It's still a good enough trade-off, considering we'd need to keep a bool
> > elsewhere.
> 
> Do I understand correctly that you're saying a bool is worse than a heap
> allocation?

No.

My point was on convenience to the code, considering this is a corner case.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list