Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KCalc
Commits
a742ed2f
Commit
a742ed2f
authored
Nov 24, 2021
by
Laurent Montel
😁
Browse files
Modernize code
parent
f4c9c38b
Pipeline
#100506
passed with stage
in 42 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kcalc_button.h
View file @
a742ed2f
...
...
@@ -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
)
...
...
kcalcdisplay.cpp
View file @
a742ed2f
...
...
@@ -59,9 +59,7 @@ KCalcDisplay::KCalcDisplay(QWidget *parent)
// Name: ~KCalcDisplay
// Desc: destructor
//------------------------------------------------------------------------------
KCalcDisplay
::~
KCalcDisplay
()
{
}
KCalcDisplay
::~
KCalcDisplay
()
=
default
;
//------------------------------------------------------------------------------
// Name: changeSettings
...
...
kcalchistory.cpp
View file @
a742ed2f
...
...
@@ -22,9 +22,7 @@ KCalcHistory::KCalcHistory(QWidget *parent)
// Name: KCalcHistory
// Desc: destructor
//------------------------------------------------------------------------------
KCalcHistory
::~
KCalcHistory
()
{
}
KCalcHistory
::~
KCalcHistory
()
=
default
;
//------------------------------------------------------------------------------
// Name: addToHistory
...
...
knumber/knumber_error.cpp
View file @
a742ed2f
...
...
@@ -47,9 +47,7 @@ knumber_error::knumber_error()
//------------------------------------------------------------------------------
// Name:
//------------------------------------------------------------------------------
knumber_error
::~
knumber_error
()
{
}
knumber_error
::~
knumber_error
()
=
default
;
//------------------------------------------------------------------------------
// Name:
...
...
knumber/knumber_float.cpp
View file @
a742ed2f
...
...
@@ -9,7 +9,7 @@
#include "knumber_fraction.h"
#include "knumber_integer.h"
#include <QScopedArrayPointer>
#include <math
.h
>
#include <
c
math>
#ifdef _MSC_VER
double
log2
(
double
x
)
...
...
stats.cpp
View file @
a742ed2f
...
...
@@ -11,17 +11,13 @@
// Name: KStats
// Desc: constructor
//------------------------------------------------------------------------------
KStats
::
KStats
()
{
}
KStats
::
KStats
()
=
default
;
//------------------------------------------------------------------------------
// Name: ~KStats
// Desc: destructor
//------------------------------------------------------------------------------
KStats
::~
KStats
()
{
}
KStats
::~
KStats
()
=
default
;
//------------------------------------------------------------------------------
// Name: clearAll
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment