diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-03-25 20:59:50 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-03-26 09:07:59 +0100 |
commit | 1fcc08d5dccaf8280fa7709df6eb310b8f502fb2 (patch) | |
tree | 15296961f65194704890c1b6296a0fec55e77f7b /xmloff/qa/unit | |
parent | 18aa2169c9adf41fa5c9a02ad81d4f68a34509e3 (diff) |
Extract copy&pasted namespace list to XmlTestTools::registerODFNamespaces()
Both sw/ and xmloff/ can depend on test/, so no need to duplicate this.
Change-Id: I93bfdb4422bdef9f8d28bc37548130fae49829e9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113107
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'xmloff/qa/unit')
-rw-r--r-- | xmloff/qa/unit/style.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xmloff/qa/unit/style.cxx b/xmloff/qa/unit/style.cxx index eaae3bbd1b92..c3c120de0e7f 100644 --- a/xmloff/qa/unit/style.cxx +++ b/xmloff/qa/unit/style.cxx @@ -61,10 +61,7 @@ void XmloffStyleTest::tearDown() void XmloffStyleTest::registerNamespaces(xmlXPathContextPtr& pXmlXpathCtx) { - xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("office"), - BAD_CAST("urn:oasis:names:tc:opendocument:xmlns:office:1.0")); - xmlXPathRegisterNs(pXmlXpathCtx, BAD_CAST("style"), - BAD_CAST("urn:oasis:names:tc:opendocument:xmlns:style:1.0")); + XmlTestTools::registerODFNamespaces(pXmlXpathCtx); } void XmloffStyleTest::load(std::u16string_view rFileName) |