Init texture to nullptr in weather.cpp
This commit is contained in:
parent
886e766ae6
commit
59284f3655
@ -17,6 +17,7 @@ weather::weather(){
|
|||||||
std::cerr << "WEATHER CONSTRUCTOR\n";
|
std::cerr << "WEATHER CONSTRUCTOR\n";
|
||||||
_time_on_screen = WEATHER_DEFAULT_ON_SCREEN_TIME;
|
_time_on_screen = WEATHER_DEFAULT_ON_SCREEN_TIME;
|
||||||
_update_interval = std::chrono::milliseconds{WEATHER_UPDATE_INTERVAL};
|
_update_interval = std::chrono::milliseconds{WEATHER_UPDATE_INTERVAL};
|
||||||
|
_texture = nullptr;
|
||||||
//let set to default, will make it so it updates the texture ASAP
|
//let set to default, will make it so it updates the texture ASAP
|
||||||
//_last_update;
|
//_last_update;
|
||||||
_rss = rss_utils::rss(WEATHER_URL_SOURCE);
|
_rss = rss_utils::rss(WEATHER_URL_SOURCE);
|
||||||
|
Loading…
Reference in New Issue
Block a user