]> granicus.if.org Git - icinga2/commitdiff
Remove unnecessary use of boost::ref()
authorGunnar Beutner <gunnar.beutner@netways.de>
Sat, 8 Nov 2014 13:54:36 +0000 (14:54 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sat, 8 Nov 2014 13:54:36 +0000 (14:54 +0100)
lib/cli/repositoryutility.cpp

index af1398755006972e2601a0bb37073fef80d2a0e1..832849f6a22dbedd1db75d941a17db108f4b2e47 100644 (file)
@@ -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;
 }