Refactor for loop into std algo call

This commit is contained in:
Strahinja Val Markovic 2013-03-01 20:15:36 -08:00
parent c8a9d0590e
commit 54ea5db7cc

View File

@ -17,6 +17,7 @@
#include "LetterNodeListMap.h"
#include "standard.h"
#include <algorithm>
namespace YouCompleteMe {
@ -39,9 +40,7 @@ int IndexForChar( char letter ) {
LetterNodeListMap::LetterNodeListMap() {
for ( uint i = 0; i < letters_.size(); ++i ) {
letters_[ i ] = NULL;
}
std::fill( letters_.begin(), letters_.end(), NULL );
}