From b7a1d40ca16eb68ae029fce56f9b4a3e3faf9230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mah=C3=A9?= Date: Thu, 30 Jan 2025 19:09:07 +0100 Subject: [PATCH] readability-implicit-bool-conversion --- src/chimera.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chimera.cc b/src/chimera.cc index c34fb257..9a94ad68 100644 --- a/src/chimera.cc +++ b/src/chimera.cc @@ -2125,7 +2125,7 @@ auto chimera_thread_core(struct chimera_info_s * ci) -> uint64_t ++borderline_count; borderline_abundance += ci->query_size; - if (opt_borderline) + if (opt_borderline != nullptr) { fasta_print_general(fp_borderline, nullptr, @@ -2300,7 +2300,7 @@ auto chimera() -> void open_chimera_file(&fp_nonchimeras, opt_nonchimeras); open_chimera_file(&fp_borderline, opt_borderline); - if (opt_chimeras_denovo) + if (opt_chimeras_denovo != nullptr) { open_chimera_file(&fp_uchimealns, opt_alnout); open_chimera_file(&fp_uchimeout, opt_tabbedout); @@ -2322,7 +2322,7 @@ auto chimera() -> void fatal("Only --strand plus is allowed with uchime_ref."); } - if (not opt_uchime_ref) + if (opt_uchime_ref == nullptr) { opt_self = 1; opt_selfid = 1;