1
0
Fork 0

indentation

This commit is contained in:
Jan Steemann 2015-10-06 17:35:44 +02:00
parent 8dfcc98694
commit 06fedc469d
3 changed files with 9 additions and 12 deletions

View File

@ -102,11 +102,10 @@ class TRI_index_operator_t {
TRI_index_operator_type_e const _type;
VocShaper const* _shaper;
TRI_index_operator_t (
TRI_index_operator_type_e const type,
VocShaper const* shaper
) : _type(type),
_shaper(shaper) {
TRI_index_operator_t (TRI_index_operator_type_e const type,
VocShaper const* shaper)
: _type(type),
_shaper(shaper) {
}
virtual ~TRI_index_operator_t () {

View File

@ -823,7 +823,8 @@ IndexIterator* HashIndex::iteratorForCondition (IndexIteratorContext* context,
auto f = flds[j];
if (f == paramPair.second) {
filled = true;
auto shaped = TRI_ShapedJsonJson(shaper, value->toJsonValue(TRI_UNKNOWN_MEM_ZONE), false);
auto shaped = TRI_ShapedJsonJson(shaper, value->toJsonValue(TRI_UNKNOWN_MEM_ZONE), false);
if (shaped == nullptr) {
TRI_ASSERT(false);
return nullptr;
@ -842,7 +843,6 @@ IndexIterator* HashIndex::iteratorForCondition (IndexIteratorContext* context,
}
// We have successfully build a searchValue by now.
// Create the iterator
auto result = new HashIndexIterator(this, searchValue.get());
searchValue.release();
return result;

View File

@ -359,10 +359,8 @@ bool SkiplistIterator::findHelperIntervalIntersectionValid (
return findHelperIntervalValid(interval);
}
void SkiplistIterator::findHelper (
TRI_index_operator_t const* indexOperator,
std::vector<SkiplistIteratorInterval>& intervals
) {
void SkiplistIterator::findHelper (TRI_index_operator_t const* indexOperator,
std::vector<SkiplistIteratorInterval>& intervals) {
TRI_skiplist_index_key_t values;
std::vector<SkiplistIteratorInterval> leftResult;
std::vector<SkiplistIteratorInterval> rightResult;
@ -761,7 +759,7 @@ int SkiplistIndex::remove (TRI_doc_mptr_t const* doc,
////////////////////////////////////////////////////////////////////////////////
SkiplistIterator* SkiplistIndex::lookup (TRI_index_operator_t* slOperator,
bool reverse) {
bool reverse) {
if (slOperator == nullptr) {
return nullptr;
}