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>
This commit is contained in:
parent
889ad68cff
commit
23ca55114d
1 changed files with 6 additions and 0 deletions
|
@ -21,7 +21,9 @@
|
||||||
|
|
||||||
using namespace ::com::sun::star;
|
using namespace ::com::sun::star;
|
||||||
|
|
||||||
|
#if !defined MACOSX
|
||||||
char const DATA_DIRECTORY[] = "/filter/qa/unit/data/";
|
char const DATA_DIRECTORY[] = "/filter/qa/unit/data/";
|
||||||
|
#endif
|
||||||
|
|
||||||
/// SVG filter tests.
|
/// SVG filter tests.
|
||||||
class SvgFilterTest : public test::BootstrapFixture, public unotest::MacrosTest, public XmlTestTools
|
class SvgFilterTest : public test::BootstrapFixture, public unotest::MacrosTest, public XmlTestTools
|
||||||
|
@ -33,8 +35,10 @@ public:
|
||||||
void setUp() override;
|
void setUp() override;
|
||||||
void tearDown() override;
|
void tearDown() override;
|
||||||
void registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx) override;
|
void registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx) override;
|
||||||
|
#if !defined MACOSX
|
||||||
uno::Reference<lang::XComponent>& getComponent() { return mxComponent; }
|
uno::Reference<lang::XComponent>& getComponent() { return mxComponent; }
|
||||||
void load(const OUString& rURL);
|
void load(const OUString& rURL);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
void SvgFilterTest::setUp()
|
void SvgFilterTest::setUp()
|
||||||
|
@ -52,11 +56,13 @@ void SvgFilterTest::tearDown()
|
||||||
test::BootstrapFixture::tearDown();
|
test::BootstrapFixture::tearDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined MACOSX
|
||||||
void SvgFilterTest::load(const OUString& rFileName)
|
void SvgFilterTest::load(const OUString& rFileName)
|
||||||
{
|
{
|
||||||
OUString aURL = m_directories.getURLFromSrc(DATA_DIRECTORY) + rFileName;
|
OUString aURL = m_directories.getURLFromSrc(DATA_DIRECTORY) + rFileName;
|
||||||
mxComponent = loadFromDesktop(aURL);
|
mxComponent = loadFromDesktop(aURL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void SvgFilterTest::registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx)
|
void SvgFilterTest::registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue