Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Combine 2 CGUIWindowManager::SendThreadMessage methods with default p…

…aram.
  • Loading branch information...
commit 85030ee7ca22933adb4cd8263c6a7ee45ee7298c 1 parent 8604fde
ulion ulion authored
10 xbmc/guilib/GUIWindowManager.cpp
View
@@ -772,15 +772,7 @@ int CGUIWindowManager::GetTopMostModalDialogID(bool ignoreClosing /*= false*/) c
return WINDOW_INVALID;
}
-void CGUIWindowManager::SendThreadMessage(CGUIMessage& message)
-{
- CSingleLock lock(m_critSection);
-
- CGUIMessage* msg = new CGUIMessage(message);
- m_vecThreadMessages.push_back( pair<CGUIMessage*,int>(msg,0) );
-}
-
-void CGUIWindowManager::SendThreadMessage(CGUIMessage& message, int window)
+void CGUIWindowManager::SendThreadMessage(CGUIMessage& message, int window /*= 0*/)
{
CSingleLock lock(m_critSection);
3  xbmc/guilib/GUIWindowManager.h
View
@@ -118,8 +118,7 @@ class CGUIWindowManager
void RemoveDialog(int id);
int GetTopMostModalDialogID(bool ignoreClosing = false) const;
- void SendThreadMessage(CGUIMessage& message);
- void SendThreadMessage(CGUIMessage& message, int window);
+ void SendThreadMessage(CGUIMessage& message, int window = 0);
void DispatchThreadMessages();
void AddMsgTarget( IMsgTargetCallback* pMsgTarget );
int GetActiveWindow() const;
Please sign in to comment.
Something went wrong with that request. Please try again.