diff options
| author | Tomaz Canabrava <[email protected]> | 2018-06-22 16:03:48 +0200 |
|---|---|---|
| committer | Tomaz Canabrava <[email protected]> | 2018-06-22 16:17:47 +0200 |
| commit | 088e692007363bb2c8cd98487cc36ad63186b2d4 (patch) | |
| tree | d25b4c583e1bbb68bfdd23a114a40cecc85a7d9d /src/dolphindockwidget.h | |
| parent | 6b72c67b096f23a40fa9a98617742560002f33c2 (diff) | |
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
Diffstat (limited to 'src/dolphindockwidget.h')
| -rw-r--r-- | src/dolphindockwidget.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dolphindockwidget.h b/src/dolphindockwidget.h index c4fcbf753..0b745f083 100644 --- a/src/dolphindockwidget.h +++ b/src/dolphindockwidget.h @@ -30,8 +30,7 @@ class DolphinDockWidget : public QDockWidget Q_OBJECT public: - explicit DolphinDockWidget(const QString& title, QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr); - explicit DolphinDockWidget(QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr); + explicit DolphinDockWidget(const QString& title = QString(), QWidget* parent = nullptr, Qt::WindowFlags flags = nullptr); ~DolphinDockWidget() override; /** |
