summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-22 10:21:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-28 10:47:34 +0200
commitbfc1600c6ade6f006eb774bffe7caa9c948e8603 (patch)
treec660fa18fc6a9e5f05c3cc58fa34411cdc4f4257 /soltools
parentf9514beb9bfed51aee69227797e74504afed31c6 (diff)
loplugin:indentation improve checks for brace alignment
Change-Id: I333100fda7e181f68f36b03279b3fbb8cb768310 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117615 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'soltools')
-rw-r--r--soltools/cpp/_tokens.c13
-rw-r--r--soltools/mkdepend/parse.c2
2 files changed, 8 insertions, 7 deletions
diff --git a/soltools/cpp/_tokens.c b/soltools/cpp/_tokens.c
index 0a10cd34cdb1..bf2803845c20 100644
--- a/soltools/cpp/_tokens.c
+++ b/soltools/cpp/_tokens.c
@@ -493,12 +493,13 @@ void
if (wbp >= &wbuf[OBS])
{
- if ( write(1, wbuf, OBS) != -1 ) {
- if (wbp > &wbuf[OBS])
- memmove(wbuf, wbuf + OBS, wbp - &wbuf[OBS]);
- wbp -= OBS;
- }
- else exit(1);
+ if ( write(1, wbuf, OBS) != -1 )
+ {
+ if (wbp > &wbuf[OBS])
+ memmove(wbuf, wbuf + OBS, wbp - &wbuf[OBS]);
+ wbp -= OBS;
+ }
+ else exit(1);
}
}
trp->tp = tp;
diff --git a/soltools/mkdepend/parse.c b/soltools/mkdepend/parse.c
index a25fd9cd2bcd..a5c8273a27dd 100644
--- a/soltools/mkdepend/parse.c
+++ b/soltools/mkdepend/parse.c
@@ -179,7 +179,7 @@ int deftype (char *line, struct filepointer *filep, struct inclist * file,
return ELIFFALSE;
else
return ELIFGUESSFALSE;
- }
+ }
else
{
debug(0,("true...\n"));