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 );
|
const std::list< LetterNode *> *list = node->NodeListForLetter( letter );
|
||||||
|
|
||||||
if ( !list )
|
if ( !list )
|
||||||
|
|
||||||
return Result( false );
|
return Result( false );
|
||||||
|
|
||||||
node = list->front();
|
node = list->front();
|
||||||
|
@ -32,7 +32,7 @@ namespace YouCompleteMe {
|
|||||||
|
|
||||||
class LetterNode : boost::noncopyable {
|
class LetterNode : boost::noncopyable {
|
||||||
public:
|
public:
|
||||||
explicit LetterNode( char letter, int index );
|
LetterNode( char letter, int index );
|
||||||
|
|
||||||
// this is for root nodes
|
// this is for root nodes
|
||||||
explicit LetterNode( const std::string &text );
|
explicit LetterNode( const std::string &text );
|
||||||
|
@ -66,7 +66,6 @@ std::list< LetterNode * > &LetterNodeListMap::operator[] ( char letter ) {
|
|||||||
std::list< LetterNode * > *list = letters_[ letter_index ];
|
std::list< LetterNode * > *list = letters_[ letter_index ];
|
||||||
|
|
||||||
if ( list )
|
if ( list )
|
||||||
|
|
||||||
return *list;
|
return *list;
|
||||||
|
|
||||||
letters_[ letter_index ] = new std::list< LetterNode * >();
|
letters_[ letter_index ] = new std::list< LetterNode * >();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user