From fd8eed93e0835ebbc7d72e4e4a3f5ee7b94e18f3 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 8 Nov 2014 14:54:36 +0100 Subject: [PATCH] Remove unnecessary use of boost::ref() --- lib/cli/repositoryutility.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cli/repositoryutility.cpp b/lib/cli/repositoryutility.cpp index af1398755..832849f6a 100644 --- a/lib/cli/repositoryutility.cpp +++ b/lib/cli/repositoryutility.cpp @@ -162,7 +162,7 @@ void RepositoryUtility::PrintChangeLog(std::ostream& fp) { Array::Ptr changelog = make_shared(); - GetChangeLog(boost::bind(RepositoryUtility::CollectChange, _1, boost::ref(changelog))); + GetChangeLog(boost::bind(RepositoryUtility::CollectChange, _1, changelog)); ObjectLock olock(changelog); @@ -299,7 +299,7 @@ bool RepositoryUtility::CheckChangeExists(const Dictionary::Ptr& change) { Array::Ptr changelog = make_shared(); - GetChangeLog(boost::bind(RepositoryUtility::CollectChange, _1, boost::ref(changelog))); + GetChangeLog(boost::bind(RepositoryUtility::CollectChange, _1, changelog)); ObjectLock olock(changelog); BOOST_FOREACH(const Dictionary::Ptr& entry, changelog) { @@ -331,7 +331,7 @@ bool RepositoryUtility::ClearChangeLog(void) bool RepositoryUtility::ChangeLogHasPendingChanges(void) { Array::Ptr changelog = make_shared(); - GetChangeLog(boost::bind(RepositoryUtility::CollectChange, _1, boost::ref(changelog))); + GetChangeLog(boost::bind(RepositoryUtility::CollectChange, _1, changelog)); return changelog->GetLength() > 0; } -- 2.49.0