|
@@ -44,7 +44,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
ctkLDAPSearchFilter::ctkLDAPSearchFilter()
|
|
ctkLDAPSearchFilter::ctkLDAPSearchFilter()
|
|
- : d(new ctkLDAPSearchFilterData())
|
|
|
|
|
|
+ : d(0)
|
|
{
|
|
{
|
|
}
|
|
}
|
|
|
|
|
|
@@ -62,6 +62,11 @@ ctkLDAPSearchFilter::~ctkLDAPSearchFilter()
|
|
{
|
|
{
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ctkLDAPSearchFilter::operator bool() const
|
|
|
|
+{
|
|
|
|
+ return d;
|
|
|
|
+}
|
|
|
|
+
|
|
bool ctkLDAPSearchFilter::match(const ctkServiceReference& reference) const
|
|
bool ctkLDAPSearchFilter::match(const ctkServiceReference& reference) const
|
|
{
|
|
{
|
|
return d->ldapExpr.evaluate(reference.d_func()->getProperties(), true);
|
|
return d->ldapExpr.evaluate(reference.d_func()->getProperties(), true);
|