aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/KvsObject_window.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/objects/KvsObject_window.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/objects/KvsObject_window.cpp')
-rw-r--r--src/modules/objects/KvsObject_window.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/modules/objects/KvsObject_window.cpp b/src/modules/objects/KvsObject_window.cpp
index 34ede2ed8..43fb2aea3 100644
--- a/src/modules/objects/KvsObject_window.cpp
+++ b/src/modules/objects/KvsObject_window.cpp
@@ -34,13 +34,12 @@
KviKvsScriptWindowWindow::KviKvsScriptWindowWindow(const QString & szName)
: KviWindow(KviWindow::ScriptObject, szName)
{
- m_pCentralWidget = 0;
- m_pIcon = 0;
+ m_pCentralWidget = nullptr;
+ m_pIcon = nullptr;
}
KviKvsScriptWindowWindow::~KviKvsScriptWindowWindow()
-{
-}
+ = default;
void KviKvsScriptWindowWindow::setCentralWidget(KvsObject_widget * o, QWidget * w)
{
@@ -56,14 +55,14 @@ void KviKvsScriptWindowWindow::resizeEvent(QResizeEvent *)
void KviKvsScriptWindowWindow::centralWidgetObjectDestroyed()
{
- m_pCentralWidget = 0;
- m_pCentralWidgetObject = 0;
+ m_pCentralWidget = nullptr;
+ m_pCentralWidgetObject = nullptr;
}
void KviKvsScriptWindowWindow::centralWidgetDestroyed()
{
- m_pCentralWidget = 0;
- m_pCentralWidgetObject = 0;
+ m_pCentralWidget = nullptr;
+ m_pCentralWidgetObject = nullptr;
}
QPixmap * KviKvsScriptWindowWindow::myIconPtr()