sw/source/core/layout/atrfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 813ad0b0e1b5b8708c900c58d8a974770a2bd73a Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Aug 8 12:48:42 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Aug 9 10:01:35 2022 +0200 cid#1507856 silence Invalid type in argument to printf format specifier Change-Id: I05cfe777108667ea3640519b3231431fbe3fc0d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137980 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 775fe203c661..9da40280f0d9 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -1774,7 +1774,7 @@ void SwFormatAnchor::dumpAsXml(xmlTextWriterPtr pWriter) const (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("m_pContentAnchor"), BAD_CAST(aContentAnchor.str().c_str())); } else - (void)xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("m_pContentAnchor"), "%p", nullptr); + (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("m_pContentAnchor"), BAD_CAST("(nil)")); (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("m_eAnchorType"), BAD_CAST(OString::number(static_cast<int>(m_eAnchorId)).getStr())); (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("m_nPageNumber"), BAD_CAST(OString::number(m_nPageNumber).getStr())); (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("m_nOrder"), BAD_CAST(OString::number(m_nOrder).getStr()));