X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fquery-fp.h;h=beaaf4054cd921b508b25acaa5a719f072033ab3;hp=d6e4b31394f4f8eef3d3eebd9ee6b704be26284f;hb=HEAD;hpb=07dff496304d6dc2e8033a18691b095ed9cd212f diff --git a/lib/query-fp.h b/lib/query-fp.h index d6e4b313..beaaf405 100644 --- a/lib/query-fp.h +++ b/lib/query-fp.h @@ -26,17 +26,18 @@ #include #include "notmuch.h" -#if HAVE_XAPIAN_FIELD_PROCESSOR class QueryFieldProcessor : public Xapian::FieldProcessor { - protected: +protected: Xapian::QueryParser &parser; notmuch_database_t *notmuch; - public: +public: QueryFieldProcessor (Xapian::QueryParser &parser_, notmuch_database_t *notmuch_) - : parser(parser_), notmuch(notmuch_) { }; + : parser (parser_), notmuch (notmuch_) + { + }; - Xapian::Query operator()(const std::string & str); + Xapian::Query operator() (const std::string & str); }; -#endif + #endif /* NOTMUCH_QUERY_FP_H */