cleanup: reuse constructor of DiveCartesianAxis

The constructors of Time- and TemperatureAxis don't do anything.
In reasonable modern C++ we can simply reuse the constructor
of the base class with a "using" directive.

The point here is to simplify followup commits that will
add additional parameters to the constructors of the axes.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-06-02 11:24:14 +02:00 committed by Dirk Hohndel
parent d725170914
commit 7744fec0bf
2 changed files with 2 additions and 10 deletions

View file

@ -88,7 +88,7 @@ slots:
class TimeAxis : public DiveCartesianAxis {
Q_OBJECT
public:
TimeAxis(ProfileWidget2 *widget);
using DiveCartesianAxis::DiveCartesianAxis;
void updateTicks(color_index_t color = TIME_GRID) override;
private:
QString textForValue(double value) const override;
@ -98,7 +98,7 @@ private:
class TemperatureAxis : public DiveCartesianAxis {
Q_OBJECT
public:
TemperatureAxis(ProfileWidget2 *widget);
using DiveCartesianAxis::DiveCartesianAxis;
private:
QString textForValue(double value) const override;
};