diff options
8 files changed, 11 insertions, 11 deletions
diff --git a/document/src/vespa/document/datatype/annotationreferencedatatype.cpp b/document/src/vespa/document/datatype/annotationreferencedatatype.cpp index 609ba87826e..758972d3944 100644 --- a/document/src/vespa/document/datatype/annotationreferencedatatype.cpp +++ b/document/src/vespa/document/datatype/annotationreferencedatatype.cpp @@ -37,7 +37,7 @@ unique_ptr<FieldValue> AnnotationReferenceDataType::createFieldValue() const { return FieldValue::UP(new AnnotationReferenceFieldValue(*this, 0)); } -void AnnotationReferenceDataType::onBuildFieldPath(FieldPath &, vespalib::stringref ) const { } +void AnnotationReferenceDataType::onBuildFieldPath(FieldPath &, vespalib::stringref) const { } } // namespace document diff --git a/document/src/vespa/document/fieldvalue/fieldvalue.cpp b/document/src/vespa/document/fieldvalue/fieldvalue.cpp index f5cd92ddc06..037baaffe5f 100644 --- a/document/src/vespa/document/fieldvalue/fieldvalue.cpp +++ b/document/src/vespa/document/fieldvalue/fieldvalue.cpp @@ -106,7 +106,7 @@ FieldValue::toXml(const std::string& indent) const // Subtypes should implement the conversion functions that make sense -FieldValue& FieldValue::operator=(vespalib::stringref ) +FieldValue& FieldValue::operator=(vespalib::stringref) { throw vespalib::IllegalArgumentException( "Cannot assign string to datatype " + getDataType()->toString(), diff --git a/document/src/vespa/document/fieldvalue/fieldvalue.h b/document/src/vespa/document/fieldvalue/fieldvalue.h index 8fe47d64981..bfdc907e871 100644 --- a/document/src/vespa/document/fieldvalue/fieldvalue.h +++ b/document/src/vespa/document/fieldvalue/fieldvalue.h @@ -113,7 +113,7 @@ public: virtual std::string toXml(const std::string& indent = "") const; // Utility functions to set commonly used value types. - virtual FieldValue& operator=(vespalib::stringref ); + virtual FieldValue& operator=(vespalib::stringref); virtual FieldValue& operator=(int32_t); virtual FieldValue& operator=(int64_t); virtual FieldValue& operator=(float); diff --git a/document/src/vespa/document/fieldvalue/literalfieldvalue.h b/document/src/vespa/document/fieldvalue/literalfieldvalue.h index a37b612acbb..7134172caeb 100644 --- a/document/src/vespa/document/fieldvalue/literalfieldvalue.h +++ b/document/src/vespa/document/fieldvalue/literalfieldvalue.h @@ -68,7 +68,7 @@ public: FieldValue& assign(const FieldValue&) override; bool hasChanged() const override{ return _altered; } - FieldValue& operator=(vespalib::stringref ) override; + FieldValue& operator=(vespalib::stringref) override; FieldValue& operator=(int32_t) override; FieldValue& operator=(int64_t) override; FieldValue& operator=(float) override; diff --git a/document/src/vespa/document/fieldvalue/numericfieldvalue.h b/document/src/vespa/document/fieldvalue/numericfieldvalue.h index 5e6689e35cd..36f4f65765b 100644 --- a/document/src/vespa/document/fieldvalue/numericfieldvalue.h +++ b/document/src/vespa/document/fieldvalue/numericfieldvalue.h @@ -40,7 +40,7 @@ public: int compare(const FieldValue& other) const override; int fastCompare(const FieldValue& other) const override final; - FieldValue& operator=(vespalib::stringref ) override; + FieldValue& operator=(vespalib::stringref) override; FieldValue& operator=(int32_t) override; FieldValue& operator=(int64_t) override; FieldValue& operator=(float) override; diff --git a/metrics/src/vespa/metrics/countmetricvalues.h b/metrics/src/vespa/metrics/countmetricvalues.h index cef2a0ee123..17e6d89df5a 100644 --- a/metrics/src/vespa/metrics/countmetricvalues.h +++ b/metrics/src/vespa/metrics/countmetricvalues.h @@ -37,8 +37,8 @@ struct CountMetricValues : public MetricValueClass { CountMetricValues() : _value(0) {} std::string toString() const; - double getDoubleValue(stringref ) const override; - uint64_t getLongValue(stringref ) const override; + double getDoubleValue(stringref) const override; + uint64_t getLongValue(stringref) const override; void output(const std::string&, std::ostream& out) const override; void output(const std::string&, vespalib::JsonStream& stream) const override; bool inUse() const { return (_value != 0); } diff --git a/metrics/src/vespa/metrics/countmetricvalues.hpp b/metrics/src/vespa/metrics/countmetricvalues.hpp index 66c0fbc6c46..3f0f1ea4b49 100644 --- a/metrics/src/vespa/metrics/countmetricvalues.hpp +++ b/metrics/src/vespa/metrics/countmetricvalues.hpp @@ -15,12 +15,12 @@ CountMetricValues<T>::toString() const { } template <typename T> double -CountMetricValues<T>::getDoubleValue(stringref ) const { +CountMetricValues<T>::getDoubleValue(stringref) const { return static_cast<double>(_value); } template <typename T> uint64_t -CountMetricValues<T>::getLongValue(stringref ) const { +CountMetricValues<T>::getLongValue(stringref) const { return static_cast<uint64_t>(_value); } template <typename T> diff --git a/metrics/src/vespa/metrics/metricset.cpp b/metrics/src/vespa/metrics/metricset.cpp index 696062013e8..2e708e17504 100644 --- a/metrics/src/vespa/metrics/metricset.cpp +++ b/metrics/src/vespa/metrics/metricset.cpp @@ -76,11 +76,11 @@ MetricSet::getMetricInternal(const String& name) const return 0; } -int64_t MetricSet::getLongValue(stringref ) const { +int64_t MetricSet::getLongValue(stringref) const { assert(false); return 0; } -double MetricSet::getDoubleValue(stringref ) const { +double MetricSet::getDoubleValue(stringref) const { assert(false); return 0; } |