diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2014-05-26 19:41:16 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-05-27 01:19:00 -0500 |
commit | 3b24dcc8a8138c1e1495c3dba5ffe5748cb183c2 (patch) | |
tree | 8250ea36b767d906cc6606ab81d198ffda2e8ee1 /crashrep | |
parent | a1dedadbf0d87a1db24e9b336257678e059882f0 (diff) |
Remove unnecessary semicolons
A simplified version of the semantic match that finds this problem is
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@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
// </smpl>
Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e
Reviewed-on: https://gerrit.libreoffice.org/9493
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'crashrep')
-rw-r--r-- | crashrep/source/unx/main.cxx | 4 | ||||
-rw-r--r-- | crashrep/source/win32/soreport.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crashrep/source/unx/main.cxx b/crashrep/source/unx/main.cxx index 07ee976258c0..a49ef7e7ff51 100644 --- a/crashrep/source/unx/main.cxx +++ b/crashrep/source/unx/main.cxx @@ -441,7 +441,7 @@ static void WriteSOAPRequest( FILE *fp ) fcopy( fp, fpin ); fprintf( fp, "]]></value></item>\n" ); fclose( fpin ); - }; + } fpin = fopen( g_szStackFile, "r" ); if ( fpin ) @@ -453,7 +453,7 @@ static void WriteSOAPRequest( FILE *fp ) fcopy( fp, fpin ); fprintf( fp, "]]></value></item>\n" ); fclose( fpin ); - }; + } fprintf( fp, "</hash>\n" diff --git a/crashrep/source/win32/soreport.cxx b/crashrep/source/win32/soreport.cxx index 0f7f760de0ec..4a4d2bf07bdc 100644 --- a/crashrep/source/win32/soreport.cxx +++ b/crashrep/source/win32/soreport.cxx @@ -2440,7 +2440,7 @@ static void WriteSOAPRequest( FILE *fp ) fcopy( fpin, fp ); fprintf( fp, "]]></value></item>\n" ); fclose( fpin ); - }; + } fpin = fopen( g_szDumpFileNameA, "rb" ); |