Kaydet (Commit) f8018266 authored tarafından Peter Senna Tschudin's avatar Peter Senna Tschudin Kaydeden (comit) Noel Grandin

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/9968Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 0fef0d41
......@@ -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 );
......
......@@ -508,7 +508,6 @@ const NSString* DataFlavorMapper::openOfficeToSystemFlavor( const DataFlavor& oO
{
const NSString* sysFlavor = NULL;
rbInternal = false;
rbInternal = false;
for( size_t i = 0; i < SIZE_FLAVOR_MAP; ++i )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment