diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-06-14 11:21:00 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-06-14 11:21:47 +0200 |
commit | f400647e7aa0696dc847f765872dc318f01de559 (patch) | |
tree | b843112addbd7a069927c62db76af2ecb10b890d /searchcommon | |
parent | 251c18c61ee177fa9c59b35a0ae65e2ef7ff9f3d (diff) |
Code cleanup while considering options for hit estimation.
- Less includes
- std::make_unique
- alignment
- GC unused code.
Diffstat (limited to 'searchcommon')
-rw-r--r-- | searchcommon/src/vespa/searchcommon/attribute/search_context_params.h | 6 | ||||
-rw-r--r-- | searchcommon/src/vespa/searchcommon/common/range.h | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/search_context_params.h b/searchcommon/src/vespa/searchcommon/attribute/search_context_params.h index 96c3d7f3470..bd88c5e5901 100644 --- a/searchcommon/src/vespa/searchcommon/attribute/search_context_params.h +++ b/searchcommon/src/vespa/searchcommon/attribute/search_context_params.h @@ -2,10 +2,9 @@ #pragma once -#include <stddef.h> +#include <cstddef> -namespace search { -namespace attribute { +namespace search::attribute { class IAttributeVector; @@ -45,4 +44,3 @@ public: }; } -} diff --git a/searchcommon/src/vespa/searchcommon/common/range.h b/searchcommon/src/vespa/searchcommon/common/range.h index 5bcf2355eb9..f3e3156491a 100644 --- a/searchcommon/src/vespa/searchcommon/common/range.h +++ b/searchcommon/src/vespa/searchcommon/common/range.h @@ -5,10 +5,9 @@ #pragma once #include <limits> -#include <stdint.h> +#include <cstdint> -namespace search -{ +namespace search { template <typename T> class Range { @@ -30,4 +29,3 @@ private: using Int64Range = Range<int64_t>; } // namespace search - |