From 5a5b61fa8085a8c5eec59614834cb882d1d778e2 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 18 Jun 2018 20:54:25 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-bool-literal?= =?UTF-8?q?s=20pass.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes it clearer whether an integer or a boolean has to be passed in this specific call. --- src/extension/internal/pdfinput/pdf-parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/extension/internal/pdfinput/pdf-parser.cpp') diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp index b81d7abcb..5fa21263a 100644 --- a/src/extension/internal/pdfinput/pdf-parser.cpp +++ b/src/extension/internal/pdfinput/pdf-parser.cpp @@ -1759,7 +1759,7 @@ void PdfParser::doShadingPatternFillFallback(GfxShadingPattern *sPat, saveState(); // clip to bbox - if (0 ){//shading->getHasBBox()) { + if (false ){//shading->getHasBBox()) { shading->getBBox(&xMin, &yMin, &xMax, &yMax); state->moveTo(xMin, yMin); state->lineTo(xMax, yMin); @@ -2599,7 +2599,7 @@ void PdfParser::doShowText(const GooString *s) { builder->beginString(state); // handle a Type 3 char - if (font->getType() == fontType3 && 0) {//out->interpretType3Chars()) { + if (font->getType() == fontType3 && false) {//out->interpretType3Chars()) { mat = state->getCTM(); for (int i = 0; i < 6; ++i) { oldCTM[i] = mat[i]; @@ -2644,7 +2644,7 @@ void PdfParser::doShowText(const GooString *s) { state->setCTM(newCTM[0], newCTM[1], newCTM[2], newCTM[3], x, y); //~ the CTM concat values here are wrong (but never used) //out->updateCTM(state, 1, 0, 0, 1, 0, 0); - if (0){ /*!out->beginType3Char(state, curX + riseX, curY + riseY, tdx, tdy, + if (false){ /*!out->beginType3Char(state, curX + riseX, curY + riseY, tdx, tdy, code, u, uLen)) {*/ #if defined(POPPLER_NEW_OBJECT_API) charProc = ((Gfx8BitFont *)font)->getCharProc(code); -- cgit v1.2.3