mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
don't use temporaries when uneeded
Summary: Remove unused variable Compiled, Run. Trash still there. Use copy ellision Remove uneeded code Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D13680
This commit is contained in:
parent
6b72c67b09
commit
088e692007
|
@ -58,14 +58,6 @@ DolphinDockWidget::DolphinDockWidget(const QString& title, QWidget* parent, Qt::
|
||||||
setFeatures(DefaultDockWidgetFeatures);
|
setFeatures(DefaultDockWidgetFeatures);
|
||||||
}
|
}
|
||||||
|
|
||||||
DolphinDockWidget::DolphinDockWidget(QWidget* parent, Qt::WindowFlags flags) :
|
|
||||||
QDockWidget(parent, flags),
|
|
||||||
m_locked(false),
|
|
||||||
m_dockTitleBar(nullptr)
|
|
||||||
{
|
|
||||||
setFeatures(DefaultDockWidgetFeatures);
|
|
||||||
}
|
|
||||||
|
|
||||||
DolphinDockWidget::~DolphinDockWidget()
|
DolphinDockWidget::~DolphinDockWidget()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,8 +30,7 @@ class DolphinDockWidget : public QDockWidget
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit DolphinDockWidget(const QString& title, QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr);
|
explicit DolphinDockWidget(const QString& title = QString(), QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr);
|
||||||
explicit DolphinDockWidget(QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr);
|
|
||||||
~DolphinDockWidget() override;
|
~DolphinDockWidget() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue