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:
Edward Welbourne 2023-06-06 17:22:07 +02:00
parent 9155a07667
commit f7e201ba89

View File

@ -251,7 +251,7 @@ static QString macDateToStringImpl(QDate date, CFDateFormatterStyle style)
QCFType<CFDateFormatterRef> myFormatter
= CFDateFormatterCreate(kCFAllocatorDefault, mylocale, style,
kCFDateFormatterNoStyle);
QCFType<CFStringRef> text = CFDateFormatterCreateStringWithDate(0, myFormatter, myDate);
QCFType<CFStringRef> text = CFDateFormatterCreateStringWithDate(nullptr, myFormatter, myDate);
return QString::fromCFString(text);
}