summaryrefslogtreecommitdiff
path: root/include/xmloff
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-11-17 10:25:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-18 07:23:45 +0100
commit3fc10def9e82cccf3e2bb2aacadafcb321ad0773 (patch)
treedda1819beb5e52fbcdbdd0ce3a84dbd4dada1fac /include/xmloff
parent57f9fad565fed476b95cd53f2d025add577affe6 (diff)
fix XMLOFF_WARN_UNKNOWN
since (doh!) having it as a function does not correctly log the actual caller source line information. Change-Id: Iae1007414259dea372f761765e090e1ed2ddbea9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105972 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff')
-rw-r--r--include/xmloff/xmlictxt.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/xmloff/xmlictxt.hxx b/include/xmloff/xmlictxt.hxx
index 69fa648b64f8..82f4c11632f1 100644
--- a/include/xmloff/xmlictxt.hxx
+++ b/include/xmloff/xmlictxt.hxx
@@ -128,7 +128,8 @@ public:
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) final override;
};
-void XMLOFF_DLLPUBLIC XMLOFF_WARN_UNKNOWN(const char *area, sax_fastparser::FastAttributeList::FastAttributeIter const & rIter);
+#define XMLOFF_WARN_UNKNOWN(area, rIter) \
+ SAL_WARN(area, "unknown attribute " << SvXMLImport::getPrefixAndNameFromToken(rIter.getToken()) << " value=" << rIter.toString());
#define XMLOFF_WARN_UNKNOWN_ATTR(area, token, value) \
SAL_WARN(area, "unknown attribute " << SvXMLImport::getPrefixAndNameFromToken(token) << "=" << value);