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/libnrtype/Layout-TNG-Output.cpp | 2 +- src/libnrtype/Layout-TNG.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/Layout-TNG-Output.cpp b/src/libnrtype/Layout-TNG-Output.cpp index b9171d27b..dc69934b1 100644 --- a/src/libnrtype/Layout-TNG-Output.cpp +++ b/src/libnrtype/Layout-TNG-Output.cpp @@ -323,7 +323,7 @@ Geom::Affine glyph_matrix; unsigned lc_index = char_index; unsigned hold_iisi = _spans[span_index].in_input_stream_item; int newtarget = 0; - while(1){ + while(true){ glyph_index = _characters[lc_index].in_glyph; if(glyph_index == -1){ // end of a line within a paragraph, for instance lc_index++; diff --git a/src/libnrtype/Layout-TNG.cpp b/src/libnrtype/Layout-TNG.cpp index b3386926a..a9e70a74b 100644 --- a/src/libnrtype/Layout-TNG.cpp +++ b/src/libnrtype/Layout-TNG.cpp @@ -17,7 +17,7 @@ const gunichar Layout::UNICODE_SOFT_HYPHEN = 0x00AD; const double Layout::LINE_HEIGHT_NORMAL = 1.25; Layout::Layout() : - _input_truncated(0), + _input_truncated(false), _path_fitted(nullptr) { textLength._set = false; -- cgit v1.2.3