loplugin:flatten in soltools

Change-Id: I3df754c58c90978ef5fccc90518ad1af92516a9e
Reviewed-on: https://gerrit.libreoffice.org/67404
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2019-02-06 07:07:57 +01:00
parent 6770cddd9d
commit dcc06dee25
2 changed files with 25 additions and 25 deletions
+14 -14
View File
@@ -227,24 +227,24 @@ void
static Tokenrow tr = {&ta, &ta, &ta + 1, 1};
uchar *p;
if (Cplusplus)
{
ta.t = p = (uchar *) outptr;
if (!Cplusplus)
return;
if (! end)
strcpy((char *) p, "extern \"C\" {");
else
strcpy((char *) p, "}");
ta.t = p = (uchar *) outptr;
p += strlen((char *) p);
if (! end)
strcpy((char *) p, "extern \"C\" {");
else
strcpy((char *) p, "}");
*p++ = '\n';
p += strlen((char *) p);
ta.len = (char *) p - outptr;
outptr = (char *) p;
tr.tp = tr.bp;
puttokens(&tr);
}
*p++ = '\n';
ta.len = (char *) p - outptr;
outptr = (char *) p;
tr.tp = tr.bp;
puttokens(&tr);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */