Verified Commit 3078d735 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Modernize using clang-tidy

The following checks were ran:
    modernize-use-auto
    modernize-use-bool-literals
    modernize-use-nullptr
    modernize-use-override
parent e4f4d768
Pipeline #3089 passed with stage
in 14 minutes and 18 seconds
......@@ -136,7 +136,7 @@ void TimeSettingsPrivate::initTimeZones()
for ( KTimeZones::ZoneMap::ConstIterator it = zones.begin(); it != zones.end(); ++it ) {
const KTimeZone zone = it.value();
if (timeZoneFilter.isEmpty() || zone.name().contains(timeZoneFilter, Qt::CaseInsensitive)) {
TimeZone *_zone = new TimeZone(zone);
auto *_zone = new TimeZone(zone);
_zones.append(_zone);
QStandardItem *item = new QStandardItem(_zone->name());
item->setData(_zone->name().split('/').first(), Qt::UserRole+1);
......
# These are only needed here, consider porting away from both!
find_package(Qt5 REQUIRED NO_MODULE COMPONENTS Gui)
......
......@@ -151,7 +151,7 @@ int main(int argc, char **argv)
KPackage::Package package = KPackage::PackageLoader::self()->loadPackage("KPackage/GenericQML");
package.setPath(ui);
SettingsApp *settingsApp = new SettingsApp(parser);
auto *settingsApp = new SettingsApp(parser);
QQmlApplicationEngine engine;
engine.rootContext()->setContextProperty("settingsApp", settingsApp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment