mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove 'const constexpr' pairs
'constexpr' implies 'const' since it is a stronger guarantee, so let's remove the redundant 'const'. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
afa989e32c
commit
5d1f12438b
3 changed files with 9 additions and 9 deletions
|
@ -1107,10 +1107,10 @@ static bool same_cylinder_pressure(const cylinder_t &cyl1, const cylinder_t &cyl
|
|||
}
|
||||
|
||||
// Flags for comparing cylinders
|
||||
static const constexpr int SAME_TYPE = 1 << 0;
|
||||
static const constexpr int SAME_SIZE = 1 << 1;
|
||||
static const constexpr int SAME_PRESS = 1 << 2;
|
||||
static const constexpr int SAME_GAS = 1 << 3;
|
||||
static constexpr int SAME_TYPE = 1 << 0;
|
||||
static constexpr int SAME_SIZE = 1 << 1;
|
||||
static constexpr int SAME_PRESS = 1 << 2;
|
||||
static constexpr int SAME_GAS = 1 << 3;
|
||||
|
||||
static bool same_cylinder_with_flags(const cylinder_t &cyl1, const cylinder_t &cyl2, int sameCylinderFlags)
|
||||
{
|
||||
|
|
|
@ -20,10 +20,10 @@ public:
|
|||
// Returns index of selected item
|
||||
int update(const StatsState::ChartList &charts);
|
||||
|
||||
static const constexpr int ChartNameRole = Qt::UserRole + 1;
|
||||
static const constexpr int IsHeaderRole = Qt::UserRole + 2;
|
||||
static const constexpr int IconRole = Qt::UserRole + 3;
|
||||
static const constexpr int IconSizeRole = Qt::UserRole + 4;
|
||||
static constexpr int ChartNameRole = Qt::UserRole + 1;
|
||||
static constexpr int IsHeaderRole = Qt::UserRole + 2;
|
||||
static constexpr int IconRole = Qt::UserRole + 3;
|
||||
static constexpr int IconSizeRole = Qt::UserRole + 4;
|
||||
|
||||
Q_PROPERTY(int count READ rowCount NOTIFY countChanged)
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <limits>
|
||||
#include <QLocale>
|
||||
|
||||
static const constexpr double NaN = std::numeric_limits<double>::quiet_NaN();
|
||||
static constexpr double NaN = std::numeric_limits<double>::quiet_NaN();
|
||||
|
||||
// Typedefs for year / quarter or month binners
|
||||
using year_quarter = std::pair<unsigned short, unsigned short>;
|
||||
|
|
Loading…
Add table
Reference in a new issue