summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/unotest/bootstrapfixturebase.hxx2
-rw-r--r--unotest/source/cpp/bootstrapfixturebase.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/unotest/bootstrapfixturebase.hxx b/include/unotest/bootstrapfixturebase.hxx
index ac0e1166f8a6..11650df8c4d5 100644
--- a/include/unotest/bootstrapfixturebase.hxx
+++ b/include/unotest/bootstrapfixturebase.hxx
@@ -66,7 +66,7 @@ public:
virtual void setUp() override;
virtual void tearDown() override;
- bool isWindowsRDP() const;
+ static bool isWindowsRDP();
};
}
diff --git a/unotest/source/cpp/bootstrapfixturebase.cxx b/unotest/source/cpp/bootstrapfixturebase.cxx
index 5eb5b91dcaf0..a8affd272674 100644
--- a/unotest/source/cpp/bootstrapfixturebase.cxx
+++ b/unotest/source/cpp/bootstrapfixturebase.cxx
@@ -36,10 +36,10 @@ void test::BootstrapFixtureBase::setUp()
void test::BootstrapFixtureBase::tearDown() { StarBASIC::DetachAllDocBasicItems(); }
-bool test::BootstrapFixtureBase::isWindowsRDP() const
+bool test::BootstrapFixtureBase::isWindowsRDP()
{
#if defined _WIN32
- return GetSystemMetrics(SM_REMOTESESSION);
+ return GetSystemMetrics(SM_REMOTESESSION) != 0;
#else
return false;
#endif