summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-10-21 14:42:54 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-10-21 14:07:41 +0000
commita0269d8b27cbad6925549b84ccfef24fd7e1ffc3 (patch)
tree5936e33139f9acb2a1465699fcb001c63521e902
parent9035e7780081c0f57e2044268b95d6a1d47cbb6e (diff)
downloadqt-creator-a0269d8b27cbad6925549b84ccfef24fd7e1ffc3.tar.gz
Algorithm: Mark output of filtered as Q_REQUIRED_RESULT
Change-Id: I0518ed3c649efc8854cb5ef63c02e4def984cdd2 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
-rw-r--r--src/libs/utils/algorithm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/utils/algorithm.h b/src/libs/utils/algorithm.h
index d4fcac1ae9..905a70b232 100644
--- a/src/libs/utils/algorithm.h
+++ b/src/libs/utils/algorithm.h
@@ -341,6 +341,7 @@ auto transform(const SC &container, R (S::*p)() const)
// filtered
/////////////////
template<typename C, typename F>
+Q_REQUIRED_RESULT
C filtered(const C &container, F predicate)
{
C out;