[Libreoffice-commits] core.git: filter/qa
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Mon Mar 9 09:07:46 UTC 2020
filter/qa/unit/svg.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 23ca55114d89a76d751e534768998fc48d37203c
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Mar 9 08:03:14 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Mar 9 10:07:10 2020 +0100
loplugin:unreffun (macOS)
...plus ensuing -Werror,-Wunused-const-variable
Change-Id: I1a22c7e3ddaad50b27ad311bce165141d30491e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90199
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/filter/qa/unit/svg.cxx b/filter/qa/unit/svg.cxx
index d9edfd836729..e0538eebeef7 100644
--- a/filter/qa/unit/svg.cxx
+++ b/filter/qa/unit/svg.cxx
@@ -21,7 +21,9 @@
using namespace ::com::sun::star;
+#if !defined MACOSX
char const DATA_DIRECTORY[] = "/filter/qa/unit/data/";
+#endif
/// SVG filter tests.
class SvgFilterTest : public test::BootstrapFixture, public unotest::MacrosTest, public XmlTestTools
@@ -33,8 +35,10 @@ public:
void setUp() override;
void tearDown() override;
void registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx) override;
+#if !defined MACOSX
uno::Reference<lang::XComponent>& getComponent() { return mxComponent; }
void load(const OUString& rURL);
+#endif
};
void SvgFilterTest::setUp()
@@ -52,11 +56,13 @@ void SvgFilterTest::tearDown()
test::BootstrapFixture::tearDown();
}
+#if !defined MACOSX
void SvgFilterTest::load(const OUString& rFileName)
{
OUString aURL = m_directories.getURLFromSrc(DATA_DIRECTORY) + rFileName;
mxComponent = loadFromDesktop(aURL);
}
+#endif
void SvgFilterTest::registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx)
{
More information about the Libreoffice-commits
mailing list