┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search
diff options
context:
space:
mode:
Diffstat (limited to 'src/search')
-rw-r--r--src/search/bar.cpp2
-rw-r--r--src/search/bar.h2
-rw-r--r--src/search/popup.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/search/bar.cpp b/src/search/bar.cpp
index dd5acd150..851eef942 100644
--- a/src/search/bar.cpp
+++ b/src/search/bar.cpp
@@ -44,7 +44,7 @@ bool isSearchConfigured(const std::shared_ptr<const DolphinQuery> &searchConfigu
};
}
-Bar::Bar(std::shared_ptr<const DolphinQuery> dolphinQuery, QWidget *parent)
+Bar::Bar(const std::shared_ptr<const DolphinQuery> &dolphinQuery, QWidget *parent)
: AnimatedHeightWidget(parent)
, UpdatableStateInterface{dolphinQuery}
{
diff --git a/src/search/bar.h b/src/search/bar.h
index c45e838c7..969335232 100644
--- a/src/search/bar.h
+++ b/src/search/bar.h
@@ -54,7 +54,7 @@ public:
/**
* @brief Constructs a Search::Bar with an initial state matching @p dolphinQuery and with parent @p parent.
*/
- explicit Bar(std::shared_ptr<const DolphinQuery> dolphinQuery, QWidget *parent = nullptr);
+ explicit Bar(const std::shared_ptr<const DolphinQuery> &dolphinQuery, QWidget *parent = nullptr);
/**
* Returns the text that should be used as input
diff --git a/src/search/popup.cpp b/src/search/popup.cpp
index 35efc569a..2c4b38fa5 100644
--- a/src/search/popup.cpp
+++ b/src/search/popup.cpp
@@ -55,7 +55,7 @@ QString Search::balooUiName()
Popup::Popup(std::shared_ptr<const DolphinQuery> dolphinQuery, QWidget *parent)
: WidgetMenu{parent}
- , UpdatableStateInterface{dolphinQuery}
+ , UpdatableStateInterface{std::move(dolphinQuery)}
{
}