ref: refs/heads/master
commit 45a9dd76f2cdcdb8babfef7fd0cb478de8ff0e76
Author: Michael Andres
Date: Thu Oct 22 15:09:08 2009 +0200
Provide default ctor for filter::ByStatus to make -bindings happy.
---
zypp/Filter.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/zypp/Filter.h b/zypp/Filter.h
index f19e9c5..e425836 100644
--- a/zypp/Filter.h
+++ b/zypp/Filter.h
@@ -141,14 +141,14 @@ namespace zypp
typedef bool (ResStatus::*Predicate)() const;
public:
- ByStatus( Predicate pred_r )
+ ByStatus( Predicate pred_r = 0 )
: _pred( pred_r )
{}
public:
/** Filter on \ref PoolItem. */
bool operator()( const PoolItem & pi_r ) const
- { return (pi_r.status().*_pred)(); }
+ { return _pred && (pi_r.status().*_pred)(); }
/** Filter fitting sat::Solvable/ResObject. */
template<class _Solv>
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org