Re: [Development] QDateTime is missing shared null optimization

2015-08-01 Thread John Layt
[Reply to list this time...] This could work, as Qt::LocalTime / Qt::UTC / Qt::OffsetFromUtc don't actually create or use QTimeZone for anything (at least not yet, LocalTime may yet). I'm assuming dates outside the 1970-4207 year range would still use the d_ptr implementation, as would anything us

Re: [Development] QDateTime is missing shared null optimization

2015-08-01 Thread Thiago Macieira
On Saturday 01 August 2015 23:22:45 Robert Knight wrote: > > What I mean is that you'll incur a heap allocation when doing > > ... > > I don't think there is and there has never been any inline method in > > QDateTime that dereferences the d pointer, so using a nullptr to indicate > > shared null i

Re: [Development] QDateTime is missing shared null optimization

2015-08-01 Thread Robert Knight
> What I mean is that you'll incur a heap allocation when doing > ... > I don't think there is and there has never been any inline method in QDateTime > that dereferences the d pointer, so using a nullptr to indicate shared null is > acceptable. Hmm, perhaps QDT could avoid a heap allocation entir

Re: [Development] Found wince info in Gerrit ,which makes me panic

2015-08-01 Thread Andrew Knight
On 07/31/2015 07:40 PM, Gunnar Roth wrote: > Hi. > I found https://codereview.qt-project.org/#/c/122523/ > Which says > This library is not supported on WINCE. > The target is to disappear from Qt very soon anyway. > This is written by alexander.blasche@theqtcompany > So is there some secret deciso