Skip to content

Commit

Permalink
[addoncallbacks] initialize members in the order they were declared
Browse files Browse the repository at this point in the history
  • Loading branch information
mkortstiege committed Mar 10, 2015
1 parent e2f3538 commit b4b4d84
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions xbmc/addons/AddonCallbacksGUI.cpp
Expand Up @@ -1909,17 +1909,17 @@ int CAddonCallbacksGUI::Dialog_Select(const char *heading, const char *entries[]

CGUIAddonWindow::CGUIAddonWindow(int id, const std::string& strXML, CAddon* addon)
: CGUIMediaWindow(id, strXML.c_str())
, CBOnInit{nullptr}
, CBOnFocus{nullptr}
, CBOnClick{nullptr}
, CBOnAction{nullptr}
, m_clientHandle{nullptr}
, m_iWindowId(id)
, m_iOldWindowId(0)
, m_bModal(false)
, m_bIsDialog(false)
, m_actionEvent(true)
, m_addon(addon)
, m_clientHandle{nullptr}
, CBOnAction{nullptr}
, CBOnClick{nullptr}
, CBOnFocus{nullptr}
, CBOnInit{nullptr}

{
m_loadType = LOAD_ON_GUI_INIT;
Expand Down Expand Up @@ -2224,13 +2224,13 @@ void CGUIAddonWindowDialog::Show_Internal(bool show /* = true */)
}

CGUIAddonRenderingControl::CGUIAddonRenderingControl(CGUIRenderingControl *pControl)
: m_pControl{pControl},
m_clientHandle{nullptr},
m_refCount{1},
CBCreate{nullptr},
CBDirty{nullptr},
: CBCreate{nullptr},
CBRender{nullptr},
CBStop{nullptr}
CBStop{nullptr},
CBDirty{nullptr},
m_clientHandle{nullptr},
m_pControl{pControl},
m_refCount{1}
{ }

bool CGUIAddonRenderingControl::Create(int x, int y, int w, int h, void *device)
Expand Down

0 comments on commit b4b4d84

Please sign in to comment.