[Libreoffice-commits] core.git: sw/qa
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jul 27 06:29:12 UTC 2021
sw/qa/extras/indexing/SearchResultLocatorTest.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 230125da232510fb2cc08c28fb0bc36222c7600e
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Jul 26 22:29:55 2021 +0200
Commit: Stephan Bergmann <sbergman at 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 <sbergman at 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()
{
More information about the Libreoffice-commits
mailing list