aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/raweditor/RawEditorWindow.cpp
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2016-05-01 16:16:09 +0100
committerGravatar Alexey Sokolov2016-05-01 16:16:09 +0100
commitfe375f69972cd912739c0d68fa4951d35de90e5e (patch)
tree71bd2c2b59d6be62d7c18588a417e5aa39ab233c /src/modules/raweditor/RawEditorWindow.cpp
parentlibkvidcc: fix $dcc.currentSpeed documentation add missing @short and fix rig... (diff)
parentApply clang-tidy: modernize-loop-convert (diff)
downloadKVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.tar.gz
KVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.tar.bz2
KVIrc-fe375f69972cd912739c0d68fa4951d35de90e5e.zip
Merge pull request #1962 from DarthGandalf/modernize
Apply several fixes of clang-tidy
Diffstat (limited to 'src/modules/raweditor/RawEditorWindow.cpp')
-rw-r--r--src/modules/raweditor/RawEditorWindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/raweditor/RawEditorWindow.cpp b/src/modules/raweditor/RawEditorWindow.cpp
index ba40666ad..8de305fc2 100644
--- a/src/modules/raweditor/RawEditorWindow.cpp
+++ b/src/modules/raweditor/RawEditorWindow.cpp
@@ -103,7 +103,7 @@ RawEditorWidget::RawEditorWidget(QWidget * par)
m_pEditor = KviScriptEditor::createInstance(box);
m_bOneTimeSetupDone = false;
- m_pLastEditedItem = 0;
+ m_pLastEditedItem = nullptr;
}
RawEditorWidget::~RawEditorWidget()
@@ -252,7 +252,7 @@ void RawEditorWidget::addHandlerForCurrentRaw()
RawTreeWidgetItem * it = (RawTreeWidgetItem *)m_pTreeWidget->currentItem();
if(it)
{
- if(it->parent() == 0)
+ if(it->parent() == nullptr)
{
QString buffer = __tr2qs_ctx("default", "editor");
getUniqueHandlerName((RawTreeWidgetItem *)it, buffer);
@@ -273,7 +273,7 @@ void RawEditorWidget::removeCurrentHandler()
{
QTreeWidgetItem * it = m_pLastEditedItem;
RawTreeWidgetItem * parent = (RawTreeWidgetItem *)it->parent();
- m_pLastEditedItem = 0;
+ m_pLastEditedItem = nullptr;
delete it;
m_pEditor->setEnabled(false);
m_pNameEditor->setEnabled(false);
@@ -363,7 +363,7 @@ void RawEditorWidget::currentItemChanged(QTreeWidgetItem * it, QTreeWidgetItem *
}
else
{
- m_pLastEditedItem = 0;
+ m_pLastEditedItem = nullptr;
m_pNameEditor->setEnabled(false);
m_pNameEditor->setText("");
m_pEditor->setEnabled(false);
@@ -474,7 +474,7 @@ void RawEditorWidget::exportAllEvents()
}
RawEditorWindow::RawEditorWindow()
- : KviWindow(KviWindow::ScriptEditor, "raweditor", 0)
+ : KviWindow(KviWindow::ScriptEditor, "raweditor", nullptr)
{
g_pRawEditorWindow = this;
@@ -505,7 +505,7 @@ RawEditorWindow::RawEditorWindow()
RawEditorWindow::~RawEditorWindow()
{
- g_pRawEditorWindow = 0;
+ g_pRawEditorWindow = nullptr;
}
void RawEditorWindow::okClicked()