summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2018-11-06 11:28:52 +0100
committerAndras Timar <andras.timar@collabora.com>2018-11-06 14:31:44 +0100
commitd186ed09bcabe36f70e8a58b4f0b1c05c3c72218 (patch)
tree9dd5227bf638e2fba37d4d070160223d470f386b /dbaccess
parent4d9dda3fd096b9bffba5a07243a86208affd893f (diff)
replace Application::GetMainThreadIdentifier to Application::IsMainThread
Change-Id: I2b9ea77b48673af3575a3142feea5bed84f75d74 Reviewed-on: https://gerrit.libreoffice.org/62950 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/sbagrid.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx
index 01603fa72e8e..041bfc66b550 100644
--- a/dbaccess/source/ui/browser/sbagrid.cxx
+++ b/dbaccess/source/ui/browser/sbagrid.cxx
@@ -364,7 +364,7 @@ IMPL_LINK_NOARG( SbaXGridPeer, OnDispatchEvent, void*, void )
VclPtr< SbaGridControl > pGrid = GetAs< SbaGridControl >();
if ( pGrid ) // if this fails, we were disposing before arriving here
{
- if ( Application::GetMainThreadIdentifier() != ::osl::Thread::getCurrentIdentifier() )
+ if ( !Application::IsMainThread() )
{
// still not in the main thread (see SbaXGridPeer::dispatch). post an event, again
// without moving the special even to the back of the queue
@@ -400,7 +400,7 @@ void SAL_CALL SbaXGridPeer::dispatch(const URL& aURL, const Sequence< PropertyVa
if (!pGrid)
return;
- if ( Application::GetMainThreadIdentifier() != ::osl::Thread::getCurrentIdentifier() )
+ if ( !Application::IsMainThread() )
{
// we're not in the main thread. This is bad, as we want to raise windows here,
// and VCL does not like windows to be opened in non-main threads (at least on Win32).