Skip to content

Commit

Permalink
Merge pull request EOSIO#6 from kesar/patch-1
Browse files Browse the repository at this point in the history
typo indicies -> indices
  • Loading branch information
b1bart authored May 14, 2018
2 parents cb51952 + 3d38ec8 commit fd8a8ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/chainbase/chainbase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ namespace chainbase {
}
}

const index_type& indicies()const { return _indices; }
const index_type& indices()const { return _indices; }
int64_t revision()const { return _revision; }


Expand Down Expand Up @@ -794,14 +794,14 @@ namespace chainbase {
}

template<typename MultiIndexType, typename ByIndex>
auto get_index()const -> decltype( ((generic_index<MultiIndexType>*)( nullptr ))->indicies().template get<ByIndex>() )
auto get_index()const -> decltype( ((generic_index<MultiIndexType>*)( nullptr ))->indices().template get<ByIndex>() )
{
CHAINBASE_REQUIRE_READ_LOCK("get_index", typename MultiIndexType::value_type);
typedef generic_index<MultiIndexType> index_type;
typedef index_type* index_type_ptr;
assert( _index_map.size() > index_type::value_type::type_id );
assert( _index_map[index_type::value_type::type_id] );
return index_type_ptr( _index_map[index_type::value_type::type_id]->get() )->indicies().template get<ByIndex>();
return index_type_ptr( _index_map[index_type::value_type::type_id]->get() )->indices().template get<ByIndex>();
}

template<typename MultiIndexType>
Expand All @@ -820,7 +820,7 @@ namespace chainbase {
{
CHAINBASE_REQUIRE_READ_LOCK("find", ObjectType);
typedef typename get_index_type< ObjectType >::type index_type;
const auto& idx = get_index< index_type >().indicies().template get< IndexedByType >();
const auto& idx = get_index< index_type >().indices().template get< IndexedByType >();
auto itr = idx.find( std::forward< CompatibleKey >( key ) );
if( itr == idx.end() ) return nullptr;
return &*itr;
Expand Down Expand Up @@ -941,7 +941,7 @@ namespace chainbase {
bip::file_lock _flock;

/**
* This is a sparse list of known indicies kept to accelerate creation of undo sessions
* This is a sparse list of known indices kept to accelerate creation of undo sessions
*/
vector<abstract_index*> _index_list;

Expand Down

0 comments on commit fd8a8ff

Please sign in to comment.