diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-02-25 12:36:14 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-02-25 12:43:07 +0100 |
commit | ae5bc11f30f156eb996b33f426f894384357309a (patch) | |
tree | 56f07ee0b83fa061abef507a7e39da2c2e63d16c /document | |
parent | d3c80d67c20b23b3cff0ed49f0f6fa57bce703df (diff) |
Eliminate some gcc 9 warnings.
Diffstat (limited to 'document')
4 files changed, 6 insertions, 0 deletions
diff --git a/document/src/vespa/document/base/globalid.h b/document/src/vespa/document/base/globalid.h index dd1d061dbf7..16781145bf0 100644 --- a/document/src/vespa/document/base/globalid.h +++ b/document/src/vespa/document/base/globalid.h @@ -89,6 +89,8 @@ public: */ explicit GlobalId(const void *gid) { set(gid); } + GlobalId(const GlobalId &rhs) = default; + /** * Implements the assignment operator. * diff --git a/document/src/vespa/document/datatype/arraydatatype.h b/document/src/vespa/document/datatype/arraydatatype.h index 55b5af184dd..275878e5dc2 100644 --- a/document/src/vespa/document/datatype/arraydatatype.h +++ b/document/src/vespa/document/datatype/arraydatatype.h @@ -27,6 +27,7 @@ public: void print(std::ostream&, bool verbose, const std::string& indent) const override; bool operator==(const DataType& other) const override; ArrayDataType* clone() const override { return new ArrayDataType(*this); } + ArrayDataType &operator=(const ArrayDataType &rhs) = default; void onBuildFieldPath(FieldPath & path, vespalib::stringref remainFieldName) const override; DECLARE_IDENTIFIABLE(ArrayDataType); diff --git a/document/src/vespa/document/update/arithmeticvalueupdate.h b/document/src/vespa/document/update/arithmeticvalueupdate.h index 1f9e33a3c3a..697798a7275 100644 --- a/document/src/vespa/document/update/arithmeticvalueupdate.h +++ b/document/src/vespa/document/update/arithmeticvalueupdate.h @@ -55,6 +55,8 @@ public: _operator(update._operator), _operand(update._operand) {} + ArithmeticValueUpdate &operator=(const ArithmeticValueUpdate &rhs) = default; + bool operator==(const ValueUpdate& other) const override; Operator getOperator() const { return _operator; } diff --git a/document/src/vespa/document/update/clearvalueupdate.h b/document/src/vespa/document/update/clearvalueupdate.h index 2ac47deaaf9..49842653e65 100644 --- a/document/src/vespa/document/update/clearvalueupdate.h +++ b/document/src/vespa/document/update/clearvalueupdate.h @@ -17,6 +17,7 @@ public: typedef std::unique_ptr<ClearValueUpdate> UP; ClearValueUpdate() : ValueUpdate() {} ClearValueUpdate(const ClearValueUpdate& update) : ValueUpdate(update) {} + ClearValueUpdate &operator=(const ClearValueUpdate &rhs) = default; bool operator==(const ValueUpdate& other) const override; void checkCompatibility(const Field& field) const override; |