Skip to content

Commit b9438b8

Browse files
committed
a bunch of c++11-isms
1 parent 28fb720 commit b9438b8

14 files changed

+22
-24
lines changed

include/BinaryString.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class EDB_EXPORT BinaryString : public QWidget {
3131
Q_OBJECT
3232

3333
public:
34-
BinaryString(QWidget *parent = 0);
34+
BinaryString(QWidget *parent = nullptr);
3535
virtual ~BinaryString();
3636

3737
private Q_SLOTS:

include/Configuration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2828
class EDB_EXPORT Configuration : public QObject {
2929
Q_OBJECT
3030
public:
31-
Configuration(QObject *parent = 0);
31+
Configuration(QObject *parent = nullptr);
3232
virtual ~Configuration() override;
3333

3434
public:

include/Expression.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ struct ExpressionError {
4444
explicit ExpressionError(ERROR_MSG type) : error_(type) {
4545
}
4646

47-
~ExpressionError() noexcept {
48-
}
49-
5047
const char *what() const noexcept {
5148
switch(error_) {
5249
case SYNTAX:

include/FloatX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Float readFloat(const QString& strInput, bool& ok);
1414
template <class Float>
1515
class FloatXValidator : public QValidator {
1616
public:
17-
explicit FloatXValidator(QObject* parent = 0) : QValidator(parent) {}
17+
explicit FloatXValidator(QObject* parent = nullptr) : QValidator(parent) {}
1818
virtual QValidator::State validate(QString& input, int&) const override;
1919
};
2020

include/GraphEdge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class GraphEdge : public QGraphicsItemGroup {
3232
Q_DISABLE_COPY(GraphEdge)
3333

3434
public:
35-
GraphEdge(GraphNode *from, GraphNode *to, const QColor &color = Qt::black, QGraphicsItem *parent = 0);
35+
GraphEdge(GraphNode *from, GraphNode *to, const QColor &color = Qt::black, QGraphicsItem *parent = nullptr);
3636
virtual ~GraphEdge() override;
3737

3838
public:

include/GraphWidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class GraphWidget : public QGraphicsView {
3939
friend class GraphEdge;
4040

4141
public:
42-
GraphWidget(QWidget* parent = 0);
42+
GraphWidget(QWidget* parent = nullptr);
4343
virtual ~GraphWidget() override;
4444

4545
public:

include/IPlugin.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class IPlugin {
3636
}
3737

3838
public:
39-
virtual QMenu *menu(QWidget *parent = 0) = 0;
39+
virtual QMenu *menu(QWidget *parent = nullptr) = 0;
4040

4141
public:
4242
// optional, overload these to have there contents added to a view's context menu
@@ -46,7 +46,7 @@ class IPlugin {
4646
virtual QList<QAction *> data_context_menu() { return QList<QAction *>(); }
4747

4848
// optional, overload this to add a page to the options dialog
49-
virtual QWidget *options_page() { return 0; }
49+
virtual QWidget *options_page() { return nullptr; }
5050

5151
public:
5252
virtual QVariantMap save_state() const { return QVariantMap(); }

include/MemoryRegions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2323
#include "Types.h"
2424
#include <QAbstractItemModel>
2525
#include <QList>
26+
#include <memory>
2627

2728
class IRegion;
2829

include/QLongValidator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class QLongValidator : public QValidator {
2828
typedef std::int64_t value_type;
2929

3030
public:
31-
explicit QLongValidator(QObject *parent = 0);
32-
QLongValidator(value_type minimum, value_type maximum, QObject *parent = 0);
31+
explicit QLongValidator(QObject *parent = nullptr);
32+
QLongValidator(value_type minimum, value_type maximum, QObject *parent = nullptr);
3333
virtual ~QLongValidator() = default;
3434

3535
public:

include/QULongValidator.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ class QULongValidator : public QValidator {
2828
typedef std::uint64_t value_type;
2929

3030
public:
31-
explicit QULongValidator(QObject *parent = 0);
32-
QULongValidator(value_type minimum, value_type maximum, QObject *parent = 0);
31+
explicit QULongValidator(QObject *parent = nullptr);
32+
QULongValidator(value_type minimum, value_type maximum, QObject *parent = nullptr);
3333
virtual ~QULongValidator() = default;
3434

3535
public:

0 commit comments

Comments
 (0)