simplify several comparison operators
* spot/twaalgos/dtbasat.cc, spot/twaalgos/dtwasat.cc, spot/twaalgos/simulation.cc: Simplify, as reported by sonarcloud.
This commit is contained in:
parent
16ad7bdf77
commit
2ba6fba29f
3 changed files with 6 additions and 20 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2013-2022 Laboratoire de Recherche
|
||||
// Copyright (C) 2013-2023 Laboratoire de Recherche
|
||||
// et Développement de l'Epita.
|
||||
//
|
||||
// This file is part of Spot, a model checking library.
|
||||
|
|
@ -98,11 +98,7 @@ namespace spot
|
|||
return true;
|
||||
if (this->acc_ref > other.acc_ref)
|
||||
return false;
|
||||
if (this->acc_cand < other.acc_cand)
|
||||
return true;
|
||||
if (this->acc_cand > other.acc_cand)
|
||||
return false;
|
||||
return false;
|
||||
return this->acc_cand < other.acc_cand;
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue