Skip to content

Commit

Permalink
CGUIComponent: add a dummy constructor
Browse files Browse the repository at this point in the history
for use in tests
  • Loading branch information
notspiff committed Jun 23, 2024
1 parent 7a890d0 commit 9d6ca3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xbmc/guilib/GUIComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ CGUIComponent::CGUIComponent()
{
}

CGUIComponent::CGUIComponent(bool)
{
}

CGUIComponent::~CGUIComponent()
{
Deinit();
Expand All @@ -50,7 +54,8 @@ void CGUIComponent::Deinit()
{
CServiceBroker::UnregisterGUI();

m_pWindowManager->DeInitialize();
if (m_pWindowManager)
m_pWindowManager->DeInitialize();
}

CGUIWindowManager& CGUIComponent::GetWindowManager()
Expand Down
1 change: 1 addition & 0 deletions xbmc/guilib/GUIComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class CGUIComponent
{
public:
CGUIComponent();
explicit CGUIComponent(bool);
virtual ~CGUIComponent();
void Init();
void Deinit();
Expand Down

0 comments on commit 9d6ca3d

Please sign in to comment.