diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-08 12:48:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-09 10:01:35 +0200 |
commit | 813ad0b0e1b5b8708c900c58d8a974770a2bd73a (patch) | |
tree | ec1377242c573c5180e7dfa6f5438ef7f95ca107 | |
parent | 6f377e7baef480745ec7514c252087710ab9f2b0 (diff) |
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 <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/layout/atrfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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())); |