summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-11-26 16:29:39 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-11-26 16:33:17 +0100
commit3507ffabfe677463f082acca9b592d8eb947a890 (patch)
treeedb1f56f1a2da9b47a9d563d1e86580ffb45888c /sw
parent0205f0a2712f0bbc3629b1cc8590105d5dcf11db (diff)
SwRedlineTbl::dumpAsXml: -Werror=format
Change-Id: I703009efb476b20f2fca8d87e14a15c28632a5be
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/nodedump.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/docnode/nodedump.cxx b/sw/source/core/docnode/nodedump.cxx
index 57285548561c..5934911a2219 100644
--- a/sw/source/core/docnode/nodedump.cxx
+++ b/sw/source/core/docnode/nodedump.cxx
@@ -487,14 +487,14 @@ void SwRedlineTbl::dumpAsXml( xmlTextWriterPtr w )
//writer.writeFormatAttribute( "ptr", "%p", &pStartSwNode );
//writer.writeFormatAttribute( "type", "%d", pStartSwNode.GetNodeType() );
//writer.endElement( ); // swnode
- writer.writeFormatAttribute( "swnode_type", "%d", pStartSwNode.GetNodeType() );
+ writer.writeFormatAttribute( "swnode_type", TMP_FORMAT, pStartSwNode.GetNodeType() );
const SwIndex& pStartContent = pStart->nContent;
//writer.startElement( "swindex" );
//writer.writeFormatAttribute( "ptr", "%p", &pStartContent );
//writer.writeFormatAttribute( "content_index", "%d", pStartContent.GetIndex() );
//writer.endElement( ); // swindex
- writer.writeFormatAttribute( "swindex_content_index", "%d", pStartContent.GetIndex() );
+ writer.writeFormatAttribute( "swindex_content_index", TMP_FORMAT, pStartContent.GetIndex() );
}
//writer.endElement( ); // swnodeindex
}
@@ -527,14 +527,14 @@ void SwRedlineTbl::dumpAsXml( xmlTextWriterPtr w )
//writer.writeFormatAttribute( "ptr", "%p", &pEndSwNode );
//writer.writeFormatAttribute( "type", "%d", pEndSwNode.GetNodeType() );
//writer.endElement( ); // swnode
- writer.writeFormatAttribute( "swnode_type", "%d", pEndSwNode.GetNodeType() );
+ writer.writeFormatAttribute( "swnode_type", TMP_FORMAT, pEndSwNode.GetNodeType() );
const SwIndex& pEndContent = pEnd->nContent;
//writer.startElement( "swindex" );
//writer.writeFormatAttribute( "ptr", "%p", &pEndContent );
//writer.writeFormatAttribute( "content_index", "%d", pEndContent.GetIndex() );
//writer.endElement( ); // swindex
- writer.writeFormatAttribute( "swindex_content_index", "%d", pEndContent.GetIndex() );
+ writer.writeFormatAttribute( "swindex_content_index", TMP_FORMAT, pEndContent.GetIndex() );
}
//writer.endElement( ); // swnodeindex
}