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();