From 230125da232510fb2cc08c28fb0bc36222c7600e Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 26 Jul 2021 22:29:55 +0200 Subject: loplugin:unreffun (macOS) ...and -Werror,-Wunused-const-variable Change-Id: I0071e08af4ec3a037fb49b9345c1f70ddcfc5ea4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119536 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sw/qa/extras/indexing/SearchResultLocatorTest.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sw') diff --git a/sw/qa/extras/indexing/SearchResultLocatorTest.cxx b/sw/qa/extras/indexing/SearchResultLocatorTest.cxx index e93c36b7fa7a..9b8474911fbd 100644 --- a/sw/qa/extras/indexing/SearchResultLocatorTest.cxx +++ b/sw/qa/extras/indexing/SearchResultLocatorTest.cxx @@ -17,13 +17,17 @@ namespace { +#if !defined MACOSX constexpr OUStringLiteral DATA_DIRECTORY = u"sw/qa/extras/indexing/data/"; +#endif } class SearchResultLocatorTest : public SwModelTestBase { private: +#if !defined MACOSX SwDoc* createDoc(const char* pName = nullptr); +#endif public: void testSearchResultLocator(); @@ -33,6 +37,7 @@ public: CPPUNIT_TEST_SUITE_END(); }; +#if !defined MACOSX SwDoc* SearchResultLocatorTest::createDoc(const char* pName) { if (!pName) @@ -44,6 +49,7 @@ SwDoc* SearchResultLocatorTest::createDoc(const char* pName) CPPUNIT_ASSERT(pTextDoc); return pTextDoc->GetDocShell()->GetDoc(); } +#endif void SearchResultLocatorTest::testSearchResultLocator() { -- cgit