First entry in sourceLocationExpand is special.

This commit is contained in:
Bartosz Taudul 2018-03-04 16:57:57 +01:00
parent 80da271a2c
commit 9170cfd943

View File

@ -377,7 +377,7 @@ std::vector<int32_t> Worker::GetMatchingSourceLocation( const char* query ) cons
std::vector<int32_t> match; std::vector<int32_t> match;
const auto sz = m_data.sourceLocationExpand.size(); const auto sz = m_data.sourceLocationExpand.size();
for( size_t i=0; i<sz; i++ ) for( size_t i=1; i<sz; i++ )
{ {
const auto it = m_data.sourceLocation.find( m_data.sourceLocationExpand[i] ); const auto it = m_data.sourceLocation.find( m_data.sourceLocationExpand[i] );
assert( it != m_data.sourceLocation.end() ); assert( it != m_data.sourceLocation.end() );