From 14e345f53bc9835b54b66623ddb5c19091624f5a Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 3 May 2024 23:12:40 +0200 Subject: [PATCH] weather: formatting code using astyle Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f63728bbb534252ca1a1a4ef5ddfb974a664df17 Author: vanhofen Date: 2024-05-03 (Fri, 03 May 2024) Origin message was: ------------------ - weather: formatting code using astyle ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/weather.cpp | 2 +- src/gui/weather_setup.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/weather.cpp b/src/gui/weather.cpp index 22fe0f981..c2557464b 100644 --- a/src/gui/weather.cpp +++ b/src/gui/weather.cpp @@ -118,7 +118,7 @@ bool CWeather::GetWeatherDetails() std::string lat = coords.substr(0, coords.find_first_of(',')); std::string lon = coords.substr(coords.find_first_of(',') + 1); - std::string data = "https://api.openweathermap.org/data/"+api+"/onecall?lat=" + lat + "&lon=" + lon + "&units=metric&lang=de&exclude=minutely,hourly,flags,alerts&appid=" + key; + std::string data = "https://api.openweathermap.org/data/" + api + "/onecall?lat=" + lat + "&lon=" + lon + "&units=metric&lang=de&exclude=minutely,hourly,flags,alerts&appid=" + key; JSONCPP_STRING answer; JSONCPP_STRING formattedErrors; diff --git a/src/gui/weather_setup.cpp b/src/gui/weather_setup.cpp index 8abf5a031..f612862e9 100644 --- a/src/gui/weather_setup.cpp +++ b/src/gui/weather_setup.cpp @@ -210,7 +210,7 @@ bool CWeatherSetup::changeNotify(const neutrino_locale_t OptionName, void */*dat weather_api_key_short.clear(); weather_onoff->setActive(CApiKey::check_weather_api_key()); } - else if(ARE_LOCALES_EQUAL(OptionName, LOCALE_WEATHER_API_VERSION)) + else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_WEATHER_API_VERSION)) { g_settings.weather_api_version = WEATHER_API_OPTIONS[weather_api_version].valname; CWeather::getInstance()->updateApi();