summaryrefslogtreecommitdiff
path: root/vcl/osx/salinst.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-07-17 19:18:32 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-07-17 19:15:31 +0200
commit68a96f747345dd55bcb6abdd8eee0e2d9768c9ec (patch)
tree82dc96ea1ee20a8506c942b5b7b679fc849186c6 /vcl/osx/salinst.cxx
parent2a20a894b0752e5b7f28547ed9a90570739e8bea (diff)
Use IsRunningUnitTest / IsRunningUITest consistently
The functions are moved to o3tl as inline functions. Change-Id: Ief7d7e292ef15e055ad04ab5707e5e6a2a05b916 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170636 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/osx/salinst.cxx')
-rw-r--r--vcl/osx/salinst.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/osx/salinst.cxx b/vcl/osx/salinst.cxx
index e8543fcda19c..31f02b5dcb2c 100644
--- a/vcl/osx/salinst.cxx
+++ b/vcl/osx/salinst.cxx
@@ -32,6 +32,7 @@
#include <comphelper/solarmutex.hxx>
#include <comphelper/lok.hxx>
+#include <o3tl/test_info.hxx>
#include <osl/process.h>
@@ -647,7 +648,7 @@ bool AquaSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents)
// events, we can end up blocking and waiting forever so
// don't block and wait when running unit tests.
pEvent = [NSApp nextEventMatchingMask: NSEventMaskAny
- untilDate: SalInstance::IsRunningUnitTest() ? [NSDate distantPast] : [NSDate distantFuture]
+ untilDate: o3tl::IsRunningUnitTest() ? [NSDate distantPast] : [NSDate distantFuture]
inMode: NSDefaultRunLoopMode
dequeue: YES];
if( pEvent )