aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-08-28 12:16:06 +0200
committerHenning Baldersheim <balder@oath.com>2018-08-28 12:16:06 +0200
commit60d9e3beca7ebeca83ac5fd96f1950ba4578bfc9 (patch)
treebc702fc6c57a768f1d241f400b0aec50c3176112
parentd715fcea71e2405db5293bcb38a35d7009a9ef39 (diff)
Remove redundant cast. clion tricked me.
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attribute_operation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/attribute_operation.cpp b/searchlib/src/vespa/searchlib/attribute/attribute_operation.cpp
index 91d56d78779..24e130df143 100644
--- a/searchlib/src/vespa/searchlib/attribute/attribute_operation.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attribute_operation.cpp
@@ -96,7 +96,7 @@ struct UpdateFast {
void operator()(uint32_t docid) { attr->set(docid, op(attr->getFast(docid))); }
bool valid() const {
return (attr != nullptr) &&
- (dynamic_cast<const AttributeVector &>(*attr).getConfig().isMutable()); }
+ (attr->getConfig().isMutable()); }
};
template <typename OP>
@@ -338,4 +338,4 @@ AttributeOperation::create(BasicType, const vespalib::string &, FullResult);
}
-template class vespalib::Array<search::RankedHit>; \ No newline at end of file
+template class vespalib::Array<search::RankedHit>;