Style fixes and minor refactoring

This commit is contained in:
Strahinja Val Markovic 2013-03-01 20:09:55 -08:00
parent 6d64a841bb
commit dae3dcdd9e
3 changed files with 1 additions and 3 deletions

View File

@ -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();

View File

@ -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 );

View File

@ -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 * >();