From f7e201ba89af938b0d86ab2235dedfd564cd64f7 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 6 Jun 2023 17:22:07 +0200 Subject: [PATCH] Replace 0 with nullptr where the parameter is meant to be NULL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I2c9abf53fd20305903904fa45f620fe4c9d81047 Reviewed-by: Tor Arne Vestbø --- src/corelib/text/qlocale_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/text/qlocale_mac.mm b/src/corelib/text/qlocale_mac.mm index a2f23f0b14..12211975dd 100644 --- a/src/corelib/text/qlocale_mac.mm +++ b/src/corelib/text/qlocale_mac.mm @@ -251,7 +251,7 @@ static QString macDateToStringImpl(QDate date, CFDateFormatterStyle style) QCFType myFormatter = CFDateFormatterCreate(kCFAllocatorDefault, mylocale, style, kCFDateFormatterNoStyle); - QCFType text = CFDateFormatterCreateStringWithDate(0, myFormatter, myDate); + QCFType text = CFDateFormatterCreateStringWithDate(nullptr, myFormatter, myDate); return QString::fromCFString(text); }