Skip to content

Commit 7aed38b

Browse files
committed
Replace deprecated function
1 parent 9dacdd7 commit 7aed38b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datetime.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void MXDateTime::startup()
9494
zones = zoneOut.trimmed().split('\n');
9595
comboTimeZone->blockSignals(true); // Keep blocked until loadSysTimeConfig().
9696
comboTimeArea->clear();
97-
for (const QByteArray &zone : qAsConst(zones)) {
97+
for (const QByteArray &zone : std::as_const(zones)) {
9898
const QString &area = QString(zone).section('/', 0, 0);
9999
if (comboTimeArea->findData(area) < 0) {
100100
QString text(area);
@@ -227,7 +227,7 @@ void MXDateTime::timeAreaIndexChanged(int index)
227227
}
228228
const QByteArray &area = comboTimeArea->itemData(index).toByteArray();
229229
comboTimeZone->clear();
230-
for (const QByteArray &zone : qAsConst(zones)) {
230+
for (const QByteArray &zone : std::as_const(zones)) {
231231
if (zone.startsWith(area)) {
232232
QString text(QString(zone).section('/', 1));
233233
text.replace('_', ' ');

0 commit comments

Comments
 (0)