aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-07-13 11:30:30 +0000
committerArne Juul <arnej@verizonmedia.com>2020-07-15 15:39:23 +0000
commitc1fb9ece30ea0bc233cf1b8a3ddd310dc269e111 (patch)
tree0f084515ea87f55a4de13a3af3ade12951d97764
parent22bd625e65a314a6f18b874728c3289d179a8d72 (diff)
location must have a location
-rw-r--r--searchlib/src/vespa/searchlib/common/location.cpp6
-rw-r--r--searchlib/src/vespa/searchlib/common/location.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/searchlib/src/vespa/searchlib/common/location.cpp b/searchlib/src/vespa/searchlib/common/location.cpp
index d88c3ae7302..30106aae3b4 100644
--- a/searchlib/src/vespa/searchlib/common/location.cpp
+++ b/searchlib/src/vespa/searchlib/common/location.cpp
@@ -5,10 +5,8 @@
namespace search::common {
-Location::Location() : _zBoundingBox(0,0,0,0) {}
-
-Location::Location(const GeoLocationSpec &other)
- : GeoLocationSpec(other),
+Location::Location(const GeoLocationSpec &from)
+ : GeoLocationSpec(from),
_zBoundingBox(0,0,0,0)
{
using vespalib::geo::ZCurve;
diff --git a/searchlib/src/vespa/searchlib/common/location.h b/searchlib/src/vespa/searchlib/common/location.h
index df8f130ce70..6e1a39b033c 100644
--- a/searchlib/src/vespa/searchlib/common/location.h
+++ b/searchlib/src/vespa/searchlib/common/location.h
@@ -15,8 +15,7 @@ class Location : public DocumentLocations,
public GeoLocationSpec
{
public:
- Location();
- Location(const GeoLocationSpec& other);
+ Location(const GeoLocationSpec& from);
~Location() {}
Location(Location &&) = default;
bool getRankOnDistance() const { return hasPoint(); }