← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2530: explicit return type for lambda (MSVC errors without this)

 

------------------------------------------------------------
revno: 2530
committer: iceman50 <bdcdevel@xxxxxxxxx>
branch nick: dcplusplus
timestamp: Sun 2011-05-08 11:12:13 -0500
message:
  explicit return type for lambda (MSVC errors without this)
modified:
  dcpp/QueueManager.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/QueueManager.cpp'
--- dcpp/QueueManager.cpp	2011-05-08 16:00:40 +0000
+++ dcpp/QueueManager.cpp	2011-05-08 16:12:13 +0000
@@ -1925,7 +1925,7 @@
 }
 
 bool QueueManager::isFinished(const BundleItem &bi) noexcept {
-	return find_if(bi.getBundle()->entries, [&](const Bundle::Entry &e) {
+	return find_if(bi.getBundle()->entries, [&](const Bundle::Entry &e) -> bool {
 		auto qi = fileQueue.find(bi.getRoot() + e.name);
 		return qi && !qi->isFinished();
 	}) != bi.getBundle()->entries.end();