aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-10-03 22:35:10 +0200
committerTor Egge <Tor.Egge@broadpark.no>2020-10-03 22:35:10 +0200
commit3c5c7a085e57b92d0889fdc1245591aa5bd83891 (patch)
treed35c9496666110a50f6e4de7ed2a840e1282c3f3
parent3bed313ade23e3ce03e65b8d78f14cb08f854bfc (diff)
Move QueryEnvironment::getAllLocations member function definition to cpp file.
-rw-r--r--streamingvisitors/src/vespa/searchvisitor/queryenvironment.cpp10
-rw-r--r--streamingvisitors/src/vespa/searchvisitor/queryenvironment.h8
2 files changed, 11 insertions, 7 deletions
diff --git a/streamingvisitors/src/vespa/searchvisitor/queryenvironment.cpp b/streamingvisitors/src/vespa/searchvisitor/queryenvironment.cpp
index 383f6c3d44b..814ad69ff87 100644
--- a/streamingvisitors/src/vespa/searchvisitor/queryenvironment.cpp
+++ b/streamingvisitors/src/vespa/searchvisitor/queryenvironment.cpp
@@ -54,5 +54,15 @@ QueryEnvironment::QueryEnvironment(const string & location_str,
QueryEnvironment::~QueryEnvironment() {}
+QueryEnvironment::GeoLocationSpecPtrs
+QueryEnvironment::getAllLocations() const
+{
+ GeoLocationSpecPtrs retval;
+ for (const auto & loc : _locations) {
+ retval.push_back(&loc);
+ }
+ return retval;
+}
+
} // namespace streaming
diff --git a/streamingvisitors/src/vespa/searchvisitor/queryenvironment.h b/streamingvisitors/src/vespa/searchvisitor/queryenvironment.h
index df354d578e6..c606ea7495e 100644
--- a/streamingvisitors/src/vespa/searchvisitor/queryenvironment.h
+++ b/streamingvisitors/src/vespa/searchvisitor/queryenvironment.h
@@ -48,13 +48,7 @@ public:
}
// inherit documentation
- GeoLocationSpecPtrs getAllLocations() const override {
- GeoLocationSpecPtrs retval;
- for (const auto & loc : _locations) {
- retval.push_back(&loc);
- }
- return retval;
- }
+ GeoLocationSpecPtrs getAllLocations() const override;
// inherit documentation
virtual const search::attribute::IAttributeContext & getAttributeContext() const override { return *_attrCtx; }