diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-03-09 08:03:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-03-09 10:07:10 +0100 |
commit | 23ca55114d89a76d751e534768998fc48d37203c (patch) | |
tree | 281847c24852a1e76e6d02250d66d5abb52ee516 /filter | |
parent | sw: prefix members of SwUndoMergeTable, SwUndoOutlineLeftRight, ... (diff) | |
download | core-23ca55114d89a76d751e534768998fc48d37203c.tar.gz core-23ca55114d89a76d751e534768998fc48d37203c.zip |
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@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/qa/unit/svg.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |