summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-03-31 09:52:24 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-03-31 09:50:24 +0200
commita182e9ce5e0da3cc98603ed27819405812d7fab1 (patch)
tree07ec438655d796f6a7cd9bc06478f3110b53cb8f
parent8062e6e6bb23b1fa94c66bd3ae46e2d5c2ba58ee (diff)
This should be a static method
Change-Id: I70b725d42a91151e0c1f2f1fedc4be18433a7cf4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113397 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-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