sw/qa/extras/indexing/SearchResultLocatorTest.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 230125da232510fb2cc08c28fb0bc36222c7600e Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Jul 26 22:29:55 2021 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Tue Jul 27 08:28:39 2021 +0200 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 <sberg...@redhat.com> 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() { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits