diff --git a/code/c++/search_ranges2.cc b/code/c++/search_ranges2.cc index ffd3660..868bf67 100644 --- a/code/c++/search_ranges2.cc +++ b/code/c++/search_ranges2.cc @@ -47,7 +47,8 @@ search(const string & dbpath, const string & querystring, PopulationRangeProcessor(Xapian::valueno slot, int low_, int high_) : Xapian::NumberRangeProcessor(slot), low(low_), high(high_) { } - Xapian::Query operator()(const string& begin, const string& end) { + Xapian::Query operator()(const string& begin, + const string& end) override { if (!check_range_end(begin)) return Xapian::Query(Xapian::Query::OP_INVALID); if (!check_range_end(end)) diff --git a/code/c++/search_sorting3.cc b/code/c++/search_sorting3.cc index 5c2b89c..6f67447 100644 --- a/code/c++/search_sorting3.cc +++ b/code/c++/search_sorting3.cc @@ -34,7 +34,7 @@ search(const string & dbpath, const string & querystring, enquire.set_query(query); // Start of example code. class DistanceKeyMaker : public Xapian::KeyMaker { - string operator()(const Xapian::Document& doc) const { + string operator()(const Xapian::Document& doc) const override { // we want to return a sortable string which represents // the distance from Washington, DC to the middle of this // state.