diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-06-02 12:14:15 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-06-02 12:18:26 +0000 |
commit | 32e99bece3ef25c8fa1ed60461395c34a28b7c2e (patch) | |
tree | ae40002e5b614703872c309e3b847f40321b0888 /eval | |
parent | d28745bcca2737bd716fb001a1417cdfb1febd96 (diff) |
Use static_cast instead of dynamic_cast
Diffstat (limited to 'eval')
-rw-r--r-- | eval/src/vespa/eval/eval/typed_cells.h | 1 | ||||
-rw-r--r-- | eval/src/vespa/eval/eval/value.h | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/eval/src/vespa/eval/eval/typed_cells.h b/eval/src/vespa/eval/eval/typed_cells.h index b8640698d13..f49672b8891 100644 --- a/eval/src/vespa/eval/eval/typed_cells.h +++ b/eval/src/vespa/eval/eval/typed_cells.h @@ -2,7 +2,6 @@ #pragma once -#include <assert.h> #include <vespa/vespalib/util/arrayref.h> #include <vespa/eval/eval/cell_type.h> diff --git a/eval/src/vespa/eval/eval/value.h b/eval/src/vespa/eval/eval/value.h index ed6d63e3b8d..7cf2659c3fb 100644 --- a/eval/src/vespa/eval/eval/value.h +++ b/eval/src/vespa/eval/eval/value.h @@ -6,10 +6,6 @@ #include "value_type.h" #include "typed_cells.h" #include <vespa/vespalib/util/string_id.h> -#include <vespa/vespalib/stllike/string.h> -#include <vespa/vespalib/util/traits.h> -#include <vector> -#include <memory> namespace vespalib::eval { @@ -193,8 +189,7 @@ private: { assert(check_cell_type<T>(type.cell_type())); auto base = create_value_builder_base(type, transient, num_mapped_dims_in, subspace_size_in, expected_subspaces); - ValueBuilder<T> *builder = dynamic_cast<ValueBuilder<T>*>(base.get()); - assert(builder); + ValueBuilder<T> *builder = static_cast<ValueBuilder<T>*>(base.get()); base.release(); return std::unique_ptr<ValueBuilder<T>>(builder); } |