Skip to content

Commit

Permalink
variable 'dc' is uninitialized when used within its own initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
did-g committed Nov 9, 2018
1 parent 2390014 commit 352f8df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/weather_routing_pi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ void weather_routing_pi::OnContextMenuItemCallback(int id)
m_pWeather_Routing->Reset();
}

bool weather_routing_pi::RenderOverlay(wxDC &dc, PlugIn_ViewPort *vp)
bool weather_routing_pi::RenderOverlay(wxDC &wxdc, PlugIn_ViewPort *vp)
{
if(m_pWeather_Routing && m_pWeather_Routing->IsShown()) {
piDC dc(dc);
piDC dc(wxdc);
m_pWeather_Routing->Render(dc, *vp);
return true;
}
Expand Down

0 comments on commit 352f8df

Please sign in to comment.