diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2014-06-29 22:52:08 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-06-30 07:06:29 +0000 |
commit | f8018266ccff7ecceb26795aeb91a6ca560e8467 (patch) | |
tree | e20f278da79c8632b88ab6e53935feabf6709168 /sdext | |
parent | 0fef0d41f7e373d562c0689107183ab40e09d129 (diff) |
Remove double assignment
The semantic match that finds this problem is follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@r@
expression i,f;
position p1,p2;
@@
(
(<+...i++...+>) = ...;
|
(<+...++i...+>) = ...;
|
(<+...i--...+>) = ...;
|
(<+...--i...+>) = ...;
|
i = <+...f(...)...+>;
|
i@p1 = ...;
(
i = <+...i...+>;
|
i = <+...f(...)...+>;
|
i@p2 = ...;
)
)
@@
expression i;
position r.p1,r.p2;
@@
* i@p1 = ...;
i@p2 = ...;
// </smpl>
Change-Id: Ifacb878d58486f2645560592484ce24b2bc0bd6f
Reviewed-on: https://gerrit.libreoffice.org/9968
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/tree/pdfiprocessor.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx index 3a670a64c38a..37f412631013 100644 --- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx +++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx @@ -638,7 +638,6 @@ void PDFIProcessor::emit( XmlEmitter& rEmitter, aProps[ "xmlns:xsd"] = "http://www.w3.org/2001/XMLSchema"; aProps[ "xmlns:xsi"] = "http://www.w3.org/2001/XMLSchema-instance"; aProps[ "office:version" ] = "1.0"; - aProps[ "office:version" ] = "1.0"; aContext.rEmitter.beginTag( "office:document", aProps ); |