Skip to content

Commit 01021b2

Browse files
committed
Use nullptr instead of NULL or 0
1 parent 34f5c78 commit 01021b2

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/chunks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Chunks: public QObject
4949
Q_OBJECT
5050
public:
5151
// Constructors and file settings
52-
Chunks(QObject *parent);
52+
explicit Chunks(QObject *parent);
5353
Chunks(QIODevice &ioDevice, QObject *parent);
5454
bool setIODevice(QIODevice &ioDevice);
5555

src/commands.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CharCommand : public QUndoCommand
2727
enum CCmd {insert, removeAt, overwrite};
2828

2929
CharCommand(Chunks * chunks, CCmd cmd, qint64 charPos, char newChar,
30-
QUndoCommand *parent=0);
30+
QUndoCommand *parent=nullptr);
3131

3232
void undo();
3333
void redo();

src/commands.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class UndoStack : public QUndoStack
4848
Q_OBJECT
4949

5050
public:
51-
UndoStack(Chunks *chunks, QObject * parent=0);
51+
UndoStack(Chunks *chunks, QObject * );
5252
void insert(qint64 pos, char c);
5353
void insert(qint64 pos, const QByteArray &ba);
5454
void removeAt(qint64 pos, qint64 len=1);

src/qhexedit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ bool QHexEdit::hexCaps()
328328
void QHexEdit::setDynamicBytesPerLine(const bool isDynamic)
329329
{
330330
_dynamicBytesPerLine = isDynamic;
331-
resizeEvent(NULL);
331+
resizeEvent(nullptr);
332332
}
333333

334334
bool QHexEdit::dynamicBytesPerLine()

src/qhexedit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class QHEXEDIT_API QHexEdit : public QAbstractScrollArea
161161
/*! Creates an instance of QHexEdit.
162162
\param parent Parent widget of QHexEdit.
163163
*/
164-
QHexEdit(QWidget *parent=NULL);
164+
explicit QHexEdit(QWidget *parent=nullptr);
165165

166166
// Access to data of qhexedit
167167

0 commit comments

Comments
 (0)