commit 4613e4b32b082b0a133321db1c76ae97072582f5
parent e9ac8b776f614e2d3d8979e0625c0ed978db00db
Author: cfillion <cfillion@users.noreply.github.com>
Date: Wed, 10 Aug 2016 03:54:47 -0400
about: don't create a useless copy of IndexPtr
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/about.cpp b/src/about.cpp
@@ -184,7 +184,7 @@ void AboutDialog::openLink(const Link *link)
ShellExecute(nullptr, AUTO_STR("open"), url.c_str(), nullptr, nullptr, SW_SHOW);
}
-AboutRemote::AboutRemote(IndexPtr index)
+AboutRemote::AboutRemote(const IndexPtr &index)
: AboutDialog(index->metadata()), m_index(index)
{
}
diff --git a/src/about.hpp b/src/about.hpp
@@ -76,7 +76,7 @@ class AboutRemote : public AboutDialog {
public:
enum { InstallResult = 100 };
- AboutRemote(IndexPtr);
+ AboutRemote(const IndexPtr &);
protected:
const std::string &what() const override;