summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-18 15:59:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-19 13:25:54 +0100
commitbe94207ecb88a9005ee6624e354d70c9613d7653 (patch)
treee57c6534adaea7930e7eac95f3b77c4e37ac452e /hwpfilter
parent7d9a5d886f4ba5c61d3c5602a9825510c68eea41 (diff)
new loplugin:emptyif
Change-Id: I1092115a0ceb3a5e6680a4b724b129f98a892c42 Reviewed-on: https://gerrit.libreoffice.org/48128 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/lexer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/lexer.cxx b/hwpfilter/source/lexer.cxx
index 177a7de9abeb..a22968e5be7a 100644
--- a/hwpfilter/source/lexer.cxx
+++ b/hwpfilter/source/lexer.cxx
@@ -1011,7 +1011,7 @@ YY_MALLOC_DECL
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (false)
+#define ECHO do { fwrite( yytext, yyleng, 1, yyout ); } while (false)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,