X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fthread-fp.h;h=00bf1aa286f78cfd6acaa6268fc291e72984e796;hp=1372597889c7996283535afb0a7940b5731a231c;hb=HEAD;hpb=4f5bbaf7e2cecfe5022ba4b28915cccfb7ccb12d diff --git a/lib/thread-fp.h b/lib/thread-fp.h index 13725978..00bf1aa2 100644 --- a/lib/thread-fp.h +++ b/lib/thread-fp.h @@ -2,7 +2,7 @@ * * This file is part of notmuch. * - * Copyright © 2017 David Bremner + * Copyright © 2018 David Bremner * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,17 +26,18 @@ #include #include "notmuch.h" -#if HAVE_XAPIAN_FIELD_PROCESSOR class ThreadFieldProcessor : public Xapian::FieldProcessor { - protected: +protected: Xapian::QueryParser &parser; notmuch_database_t *notmuch; - public: +public: ThreadFieldProcessor (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_THREAD_FP_H */