From 68a96f747345dd55bcb6abdd8eee0e2d9768c9ec Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Wed, 17 Jul 2024 19:18:32 +0500 Subject: 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 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- desktop/source/app/sofficemain.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'desktop/source') diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx index 7e38ac2b2807..9470add3b488 100644 --- a/desktop/source/app/sofficemain.cxx +++ b/desktop/source/app/sofficemain.cxx @@ -30,6 +30,7 @@ #include #if defined _WIN32 +#include #include #endif @@ -57,7 +58,7 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main() { #if defined _WIN32 // If this is a UI test, we may need to switch to a dedicated desktop - if (getenv("LO_RUNNING_UI_TEST") != nullptr) + if (o3tl::IsRunningUITest()) sal::systools::maybeCreateTestDesktop(); #endif -- cgit