From 5404f75a2fa863b97bdf8432f647053f0bff726e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 7 Nov 2018 09:26:57 +0200 Subject: loplugin:collapseif in sdext..svx Change-Id: I188d9e9b53e00acfbae3c7acd54de28f084c4b3f Reviewed-on: https://gerrit.libreoffice.org/62985 Tested-by: Jenkins Reviewed-by: Noel Grandin --- soltools/cpp/_cpp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'soltools') diff --git a/soltools/cpp/_cpp.c b/soltools/cpp/_cpp.c index 56c309321157..0a7ce78d1749 100644 --- a/soltools/cpp/_cpp.c +++ b/soltools/cpp/_cpp.c @@ -108,11 +108,8 @@ void puttokens(trp); anymacros = 0; cursource->line += cursource->lineinc; - if (cursource->lineinc > 1) - { - if (!Pflag) - genline(); - } + if (cursource->lineinc > 1 && !Pflag) + genline(); } } -- cgit