Commit a742ed2f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Modernize code

parent f4c9c38b
Pipeline #100506 passed with stage
in 42 seconds
......@@ -24,9 +24,7 @@ enum ButtonModeFlags { ModeNormal = 0, ModeShift = 1, ModeHyperbolic = 2 };
class ButtonMode
{
public:
ButtonMode()
{
}
ButtonMode() = default;
ButtonMode(const QString &label, const QString &tooltip)
: label(label)
......
......@@ -59,9 +59,7 @@ KCalcDisplay::KCalcDisplay(QWidget *parent)
// Name: ~KCalcDisplay
// Desc: destructor
//------------------------------------------------------------------------------
KCalcDisplay::~KCalcDisplay()
{
}
KCalcDisplay::~KCalcDisplay() = default;
//------------------------------------------------------------------------------
// Name: changeSettings
......
......@@ -22,9 +22,7 @@ KCalcHistory::KCalcHistory(QWidget *parent)
// Name: KCalcHistory
// Desc: destructor
//------------------------------------------------------------------------------
KCalcHistory::~KCalcHistory()
{
}
KCalcHistory::~KCalcHistory() = default;
//------------------------------------------------------------------------------
// Name: addToHistory
......
......@@ -47,9 +47,7 @@ knumber_error::knumber_error()
//------------------------------------------------------------------------------
// Name:
//------------------------------------------------------------------------------
knumber_error::~knumber_error()
{
}
knumber_error::~knumber_error() = default;
//------------------------------------------------------------------------------
// Name:
......
......@@ -9,7 +9,7 @@
#include "knumber_fraction.h"
#include "knumber_integer.h"
#include <QScopedArrayPointer>
#include <math.h>
#include <cmath>
#ifdef _MSC_VER
double log2(double x)
......
......@@ -11,17 +11,13 @@
// Name: KStats
// Desc: constructor
//------------------------------------------------------------------------------
KStats::KStats()
{
}
KStats::KStats() = default;
//------------------------------------------------------------------------------
// Name: ~KStats
// Desc: destructor
//------------------------------------------------------------------------------
KStats::~KStats()
{
}
KStats::~KStats() = default;
//------------------------------------------------------------------------------
// Name: clearAll
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment