summaryrefslogtreecommitdiffstats
path: root/src/designer/src/components/buddyeditor/buddyeditor_plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/components/buddyeditor/buddyeditor_plugin.cpp')
-rw-r--r--src/designer/src/components/buddyeditor/buddyeditor_plugin.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/designer/src/components/buddyeditor/buddyeditor_plugin.cpp b/src/designer/src/components/buddyeditor/buddyeditor_plugin.cpp
index 201c30f50..ec7a13941 100644
--- a/src/designer/src/components/buddyeditor/buddyeditor_plugin.cpp
+++ b/src/designer/src/components/buddyeditor/buddyeditor_plugin.cpp
@@ -80,7 +80,7 @@ QDesignerFormEditorInterface *BuddyEditorPlugin::core() const
void BuddyEditorPlugin::addFormWindow(QDesignerFormWindowInterface *formWindow)
{
- Q_ASSERT(formWindow != 0);
+ Q_ASSERT(formWindow != nullptr);
Q_ASSERT(m_tools.contains(formWindow) == false);
BuddyEditorTool *tool = new BuddyEditorTool(formWindow, this);
@@ -91,7 +91,7 @@ void BuddyEditorPlugin::addFormWindow(QDesignerFormWindowInterface *formWindow)
void BuddyEditorPlugin::removeFormWindow(QDesignerFormWindowInterface *formWindow)
{
- Q_ASSERT(formWindow != 0);
+ Q_ASSERT(formWindow != nullptr);
Q_ASSERT(m_tools.contains(formWindow) == true);
BuddyEditorTool *tool = m_tools.value(formWindow);
@@ -109,7 +109,7 @@ QAction *BuddyEditorPlugin::action() const
void BuddyEditorPlugin::activeFormWindowChanged(QDesignerFormWindowInterface *formWindow)
{
- m_action->setEnabled(formWindow != 0);
+ m_action->setEnabled(formWindow != nullptr);
}
QT_END_NAMESPACE