Changeset View
Changeset View
Standalone View
Standalone View
src/calendar.cpp
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Line(s) | |||||
179 | { | 179 | { | ||
180 | return d->mTimeZone; | 180 | return d->mTimeZone; | ||
181 | } | 181 | } | ||
182 | 182 | | |||
183 | void Calendar::setTimeZoneId(const QByteArray &timeZoneId) | 183 | void Calendar::setTimeZoneId(const QByteArray &timeZoneId) | ||
184 | { | 184 | { | ||
185 | d->mTimeZone = d->timeZoneIdSpec(timeZoneId); | 185 | d->mTimeZone = d->timeZoneIdSpec(timeZoneId); | ||
186 | 186 | | |||
187 | doSetTimeZone(d->mTimeZone); | 187 | doSetTimeZone(d->mTimeZone); //NOLINT false clang-analyzer-optin.cplusplus.VirtualCall | ||
188 | } | 188 | } | ||
189 | 189 | | |||
190 | //@cond PRIVATE | 190 | //@cond PRIVATE | ||
191 | QTimeZone Calendar::Private::timeZoneIdSpec(const QByteArray &timeZoneId) | 191 | QTimeZone Calendar::Private::timeZoneIdSpec(const QByteArray &timeZoneId) | ||
192 | { | 192 | { | ||
193 | if (timeZoneId == QByteArrayLiteral("UTC")) { | 193 | if (timeZoneId == QByteArrayLiteral("UTC")) { | ||
194 | return QTimeZone::utc(); | 194 | return QTimeZone::utc(); | ||
195 | } | 195 | } | ||
▲ Show 20 Lines • Show All 1175 Lines • Show Last 20 Lines |