Commit 950d9d19 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Have one declaration per line

Follow KDE coding style
parent c38e7fe5
Pipeline #77216 passed with stage
in 18 seconds
......@@ -151,8 +151,10 @@ int WeatherLocationListModel::count() const
void WeatherLocationListModel::addLocation(const KWeatherCore::LocationQueryResult &ret)
qDebug() << "add location";
const auto &locId = ret.geonameId(), &locName = ret.toponymName();
auto lat = ret.latitude(), lon = ret.longitude();
const auto &locId = ret.geonameId();
const auto &locName = ret.toponymName();
auto lat = ret.latitude();
auto lon = ret.longitude();
// add location
auto *location = new WeatherLocation(locId, locName, QString(), lat, lon);
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