diff options
| author | Tomaz Canabrava <[email protected]> | 2018-06-22 16:03:48 +0200 |
|---|---|---|
| committer | Tomaz Canabrava <[email protected]> | 2018-06-26 11:06:36 +0200 |
| commit | 9b7ceaa74da3820f43a8743a4824cf5419466791 (patch) | |
| tree | d25b4c583e1bbb68bfdd23a114a40cecc85a7d9d /src/panels/panel.cpp | |
| parent | 9b2a9704ee81c63aa13e646f87242087f88d973b (diff) | |
| parent | 088e692007363bb2c8cd98487cc36ad63186b2d4 (diff) | |
don't use temporaries when uneeded
Summary:
Remove unused variable
Compiled, Run. Trash still there.
Use copy ellision
Remove uneeded code
Reviewers: #dolphin, elvisangelaccio
Reviewed By: #dolphin, elvisangelaccio
Subscribers: elvisangelaccio, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D13680
Diffstat (limited to 'src/panels/panel.cpp')
| -rw-r--r-- | src/panels/panel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/panels/panel.cpp b/src/panels/panel.cpp index 30cff509d..40f816158 100644 --- a/src/panels/panel.cpp +++ b/src/panels/panel.cpp @@ -64,8 +64,7 @@ void Panel::setUrl(const QUrl& url) const QUrl oldUrl = m_url; m_url = url; - const bool accepted = urlChanged(); - if (!accepted) { + if (!urlChanged()) { m_url = oldUrl; } } |
