[Libreoffice-commits] core.git: editeng/source

Miklos Vajna vmiklos at collabora.co.uk
Fri Dec 5 03:46:56 PST 2014


 editeng/source/items/textitem.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9284699648fec713a0b5d6c49157be0ee894d592
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Dec 5 12:45:38 2014 +0100

    -Werror=format on Android
    
    Probably 32bit vs 64bit.
    
    Change-Id: I3ca93e88393538ba20cce23a7165d406db3144c4

diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index aa0e57c..5ccc7c7 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -592,7 +592,7 @@ void SvxPostureItem::SetBoolValue( bool bVal )
 void SvxPostureItem::dumpAsXml(xmlTextWriterPtr pWriter) const
 {
     xmlTextWriterStartElement(pWriter, BAD_CAST("svxPostureItem"));
-    xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%" SAL_PRIuUINT32, Which());
+    xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which());
     xmlTextWriterWriteAttribute(pWriter, BAD_CAST("presentation"), BAD_CAST(GetValueTextByPos(GetValue()).toUtf8().getStr()));
     xmlTextWriterEndElement(pWriter);
 }


More information about the Libreoffice-commits mailing list