[Libreoffice-commits] .: vcl/win

Julien Nabet serval2412 at kemper.freedesktop.org
Mon Jan 30 12:17:47 PST 2012


 vcl/win/source/app/salinst.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 9b6cb7319e46a2da6f5d3e3f748f103cb508f698
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Jan 30 21:16:20 2012 +0100

    Just some simplification

diff --git a/vcl/win/source/app/salinst.cxx b/vcl/win/source/app/salinst.cxx
index 196b013..d0a6bd0 100644
--- a/vcl/win/source/app/salinst.cxx
+++ b/vcl/win/source/app/salinst.cxx
@@ -329,15 +329,13 @@ void ImplSalAcquireYieldMutex( sal_uLong nCount )
 
 bool WinSalInstance::CheckYieldMutex()
 {
-    bool bRet = true;
     SalData*    pSalData = GetSalData();
-    DWORD       nCurThreadId = GetCurrentThreadId();
     if ( pSalData->mpFirstInstance )
     {
         SalYieldMutex* pYieldMutex = pSalData->mpFirstInstance->mpSalYieldMutex;
-        bRet = (pYieldMutex->mnThreadId == nCurThreadId);
+        return (pYieldMutex->mnThreadId == (GetCurrentThreadId()));
     }
-    return bRet;
+    return true;
 }
 
 // =======================================================================


More information about the Libreoffice-commits mailing list