From 3b24dcc8a8138c1e1495c3dba5ffe5748cb183c2 Mon Sep 17 00:00:00 2001 From: Peter Senna Tschudin Date: Mon, 26 May 2014 19:41:16 +0200 Subject: Remove unnecessary semicolons A simplified version of the semantic match that finds this problem is follows: (http://coccinelle.lip6.fr/) // @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p << r1.p; p1 << r1.p1; @@ if p[0].line != p1[0].line_end: cocci.include_match(False) @@ position r1.p; @@ -;@p // Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e Reviewed-on: https://gerrit.libreoffice.org/9493 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- xmloff/source/draw/ximpshap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmloff/source') diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx index 77d87bad09ff..3e34f2ec41de 100644 --- a/xmloff/source/draw/ximpshap.cxx +++ b/xmloff/source/draw/ximpshap.cxx @@ -803,7 +803,7 @@ void SdXMLShapeContext::processAttribute( sal_uInt16 nPrefix, const OUString& rL } else if( IsXMLToken( rLocalName, XML_ID ) ) { - if (!mbHaveXmlId) { maShapeId = rValue; }; + if (!mbHaveXmlId) { maShapeId = rValue; } } else if( IsXMLToken( rLocalName, XML_NAME ) ) { -- cgit