diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-02 15:37:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-02 17:39:10 +0100 |
commit | 28be7b98070b7475cc675e76f075c941133cb790 (patch) | |
tree | 3237d5ca81cd7cc835a1200f5ae41e1008174b13 /xmloff/source/text/XMLTextColumnsContext.cxx | |
parent | 3940cf7d716f3e469f47d3c831a799e58edf2eb8 (diff) |
create common macro and method for logging unknown attributes
instead of repeating the code everywhere
Change-Id: Idb94054b392ed256e64259cdb17d1522bf3c52b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105184
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/XMLTextColumnsContext.cxx')
-rw-r--r-- | xmloff/source/text/XMLTextColumnsContext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLTextColumnsContext.cxx b/xmloff/source/text/XMLTextColumnsContext.cxx index 6c5bc01077d3..0f42c9ff8de8 100644 --- a/xmloff/source/text/XMLTextColumnsContext.cxx +++ b/xmloff/source/text/XMLTextColumnsContext.cxx @@ -137,7 +137,7 @@ XMLTextColumnContext_Impl::XMLTextColumnContext_Impl( aColumn.RightMargin = nVal; break; default: - SAL_WARN("xmloff", "unknown attribute " << SvXMLImport::getPrefixAndNameFromToken(aIter.getToken()) << "=" << sValue); + XMLOFF_WARN_UNKNOWN("xmloff", aIter); break; } } @@ -205,7 +205,7 @@ XMLTextColumnSepContext_Impl::XMLTextColumnSepContext_Impl( pXML_Sep_Style_Enum ); break; default: - SAL_WARN("xmloff", "unknown attribute " << SvXMLImport::getPrefixAndNameFromToken(aIter.getToken()) << "=" << sValue); + XMLOFF_WARN_UNKNOWN("xmloff", aIter); } } } @@ -247,7 +247,7 @@ XMLTextColumnsContext::XMLTextColumnsContext( break; } default: - SAL_WARN("xmloff", "unknown attribute " << SvXMLImport::getPrefixAndNameFromToken(aIter.getToken()) << "=" << sValue); + XMLOFF_WARN_UNKNOWN("xmloff", aIter); } } } @@ -276,7 +276,7 @@ css::uno::Reference< css::xml::sax::XFastContextHandler > XMLTextColumnsContext: return mxColumnSep.get(); } - SAL_WARN("xmloff", "unknown element " << SvXMLImport::getPrefixAndNameFromToken(nElement)); + XMLOFF_WARN_UNKNOWN_ELEMENT("xmloff", nElement); return nullptr; } |