Gui: modernize C++11

* use nullptr
This commit is contained in:
wmayer
2022-03-23 18:41:21 +01:00
parent be7e18757c
commit 1178df06b4
239 changed files with 1197 additions and 1197 deletions

View File

@@ -40,7 +40,7 @@ using namespace Gui;
* Constructs a TextEdit which is a child of 'parent'.
*/
TextEdit::TextEdit(QWidget* parent)
: QPlainTextEdit(parent), cursorPosition(0), listBox(0)
: QPlainTextEdit(parent), cursorPosition(0), listBox(nullptr)
{
//Note: Set the correct context to this shortcut as we may use several instances of this
//class at a time
@@ -219,7 +219,7 @@ struct TextEditorP
* syntax highlighting for the Python language.
*/
TextEditor::TextEditor(QWidget* parent)
: TextEdit(parent), WindowParameter("Editor"), highlighter(0)
: TextEdit(parent), WindowParameter("Editor"), highlighter(nullptr)
{
d = new TextEditorP();
lineNumberArea = new LineMarker(this);