diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-07-26 22:29:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-07-27 08:28:39 +0200 |
commit | 230125da232510fb2cc08c28fb0bc36222c7600e (patch) | |
tree | 15badabb886304ddc444fd3980d933a8fa055be0 /sw | |
parent | 1ffed1e84b89454f8104e4fc7f28bce250142721 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/indexing/SearchResultLocatorTest.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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() { |