Skip to content

Commit

Permalink
Add missing constness.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Jan 9, 2025
1 parent 2447249 commit 9750889
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion include/qwtble/Quantiles.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ struct QWTBLE_EXPORT Quantiles
double interval);
static double calculateStdDev(int count, double EX, double EX2);
void setQuantiles(const QVector<double>& values);
std::tuple<double, double> calculateEXAndEX2(const QVector<double>& values);
std::tuple<double, double> calculateEXAndEX2(
const QVector<double>& values) const;

enum PlotInfo : int
{
Expand Down
2 changes: 1 addition & 1 deletion src/Picker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Picker::Picker(QWidget* parent) : QwtPlotPicker(parent)
setTrackerFont(actualFont);
}

int Picker::getAreaOfMouse()
int Picker::getAreaOfMouse() const
{
const auto x = lround(invTransform(trackerPosition()).x());
return static_cast<int>(x);
Expand Down
2 changes: 1 addition & 1 deletion src/Picker.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Picker : public QwtPlotPicker
public:
explicit Picker(QWidget* parent);

int getAreaOfMouse();
int getAreaOfMouse() const;

bool getMouseInWidget() const;

Expand Down
2 changes: 1 addition & 1 deletion src/Quantiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void Quantiles::setQuantiles(const QVector<double>& values)
}

std::tuple<double, double> Quantiles::calculateEXAndEX2(
const QVector<double>& values)
const QVector<double>& values) const
{
double EX = 0;
double EX2 = 0;
Expand Down

0 comments on commit 9750889

Please sign in to comment.