Replace 0 with nullptr where the parameter is meant to be NULL
Change-Id: I2c9abf53fd20305903904fa45f620fe4c9d81047 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
9155a07667
commit
f7e201ba89
@ -251,7 +251,7 @@ static QString macDateToStringImpl(QDate date, CFDateFormatterStyle style)
|
|||||||
QCFType<CFDateFormatterRef> myFormatter
|
QCFType<CFDateFormatterRef> myFormatter
|
||||||
= CFDateFormatterCreate(kCFAllocatorDefault, mylocale, style,
|
= CFDateFormatterCreate(kCFAllocatorDefault, mylocale, style,
|
||||||
kCFDateFormatterNoStyle);
|
kCFDateFormatterNoStyle);
|
||||||
QCFType<CFStringRef> text = CFDateFormatterCreateStringWithDate(0, myFormatter, myDate);
|
QCFType<CFStringRef> text = CFDateFormatterCreateStringWithDate(nullptr, myFormatter, myDate);
|
||||||
return QString::fromCFString(text);
|
return QString::fromCFString(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user