Style fixes and minor refactoring
This commit is contained in:
parent
6d64a841bb
commit
dae3dcdd9e
@ -74,7 +74,6 @@ Result Candidate::QueryMatchResult( const std::string &query ) const {
|
||||
const std::list< LetterNode *> *list = node->NodeListForLetter( letter );
|
||||
|
||||
if ( !list )
|
||||
|
||||
return Result( false );
|
||||
|
||||
node = list->front();
|
||||
|
@ -32,7 +32,7 @@ namespace YouCompleteMe {
|
||||
|
||||
class LetterNode : boost::noncopyable {
|
||||
public:
|
||||
explicit LetterNode( char letter, int index );
|
||||
LetterNode( char letter, int index );
|
||||
|
||||
// this is for root nodes
|
||||
explicit LetterNode( const std::string &text );
|
||||
|
@ -66,7 +66,6 @@ std::list< LetterNode * > &LetterNodeListMap::operator[] ( char letter ) {
|
||||
std::list< LetterNode * > *list = letters_[ letter_index ];
|
||||
|
||||
if ( list )
|
||||
|
||||
return *list;
|
||||
|
||||
letters_[ letter_index ] = new std::list< LetterNode * >();
|
||||
|
Loading…
x
Reference in New Issue
Block a user