[icinga-checkins] icinga.org: icinga2/feature/thin-lock: Remove unnecessary use of boost:: ref()

git at icinga.org git at icinga.org
Sat Nov 8 21:17:51 CET 2014


Module: icinga2
Branch: feature/thin-lock
Commit: fd8eed93e0835ebbc7d72e4e4a3f5ee7b94e18f3
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=fd8eed93e0835ebbc7d72e4e4a3f5ee7b94e18f3

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Sat Nov  8 14:54:36 2014 +0100

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 af13987..832849f 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<Array>();
 
-	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<Array>();
 
-	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<Array>();
-	GetChangeLog(boost::bind(RepositoryUtility::CollectChange, _1, boost::ref(changelog)));
+	GetChangeLog(boost::bind(RepositoryUtility::CollectChange, _1, changelog));
 
 	return changelog->GetLength() > 0;
 }



More information about the icinga-checkins mailing list