diff options
Diffstat (limited to 'test/source/vclbootstrapprotector.cxx')
-rw-r--r-- | test/source/vclbootstrapprotector.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/source/vclbootstrapprotector.cxx b/test/source/vclbootstrapprotector.cxx index a7f7da2ad1f6..b15ed9651a52 100644 --- a/test/source/vclbootstrapprotector.cxx +++ b/test/source/vclbootstrapprotector.cxx @@ -25,6 +25,8 @@ #include <unotools/syslocaleoptions.hxx> #include <vcl/svapp.hxx> +#include <isheadless.hxx> + namespace { class Protector: public CppUnit::Protector, private boost::noncopyable { @@ -38,7 +40,7 @@ public: MsLangId::setConfiguredSystemUILanguage(LANGUAGE_ENGLISH_US); LanguageTag::setConfiguredSystemLanguage(LANGUAGE_ENGLISH_US); InitVCL(); - if (Application::IsHeadlessModeRequested()) { + if (test::isHeadless()) { Application::EnableHeadlessMode(true); } Application::setDeInitHook(STATIC_LINK(this, Protector, deinitHook)); |