Skip to content
This repository
Browse code

Combine 2 CGUIWindowManager::SendThreadMessage methods with default p…

…aram.
  • Loading branch information...
commit 85030ee7ca22933adb4cd8263c6a7ee45ee7298c 1 parent 8604fde
ulion authored February 17, 2013
10  xbmc/guilib/GUIWindowManager.cpp
@@ -772,15 +772,7 @@ int CGUIWindowManager::GetTopMostModalDialogID(bool ignoreClosing /*= false*/) c
772 772
   return WINDOW_INVALID;
773 773
 }
774 774
 
775  
-void CGUIWindowManager::SendThreadMessage(CGUIMessage& message)
776  
-{
777  
-  CSingleLock lock(m_critSection);
778  
-
779  
-  CGUIMessage* msg = new CGUIMessage(message);
780  
-  m_vecThreadMessages.push_back( pair<CGUIMessage*,int>(msg,0) );
781  
-}
782  
-
783  
-void CGUIWindowManager::SendThreadMessage(CGUIMessage& message, int window)
  775
+void CGUIWindowManager::SendThreadMessage(CGUIMessage& message, int window /*= 0*/)
784 776
 {
785 777
   CSingleLock lock(m_critSection);
786 778
 
3  xbmc/guilib/GUIWindowManager.h
@@ -118,8 +118,7 @@ class CGUIWindowManager
118 118
   void RemoveDialog(int id);
119 119
   int GetTopMostModalDialogID(bool ignoreClosing = false) const;
120 120
 
121  
-  void SendThreadMessage(CGUIMessage& message);
122  
-  void SendThreadMessage(CGUIMessage& message, int window);
  121
+  void SendThreadMessage(CGUIMessage& message, int window = 0);
123 122
   void DispatchThreadMessages();
124 123
   void AddMsgTarget( IMsgTargetCallback* pMsgTarget );
125 124
   int GetActiveWindow() const;

0 notes on commit 85030ee

Please sign in to comment.
Something went wrong with that request. Please try again.