diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-04 15:11:43 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-08-04 15:11:43 -0700 |
commit | c67702a4989c450acd2c9f02fb65aa757f74880f (patch) | |
tree | f1def9222481625273521642d68db72c46b866b1 /fish_pager.cpp | |
parent | 5880cd88c8e378efb3c76e0cfdff99dce0edf810 (diff) |
Cleaned up lots of typecasts, simplified some string handling
Diffstat (limited to 'fish_pager.cpp')
-rw-r--r-- | fish_pager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fish_pager.cpp b/fish_pager.cpp index 7c67d348..3c9392b1 100644 --- a/fish_pager.cpp +++ b/fish_pager.cpp @@ -494,7 +494,7 @@ static void completion_print( int cols, int is_last = (j==(cols-1)); - if( (int)lst.size() <= j*rows + i ) + if( lst.size() <= j*rows + i ) continue; el = lst.at(j*rows + i ); @@ -872,11 +872,9 @@ static void mangle_descriptions( wcstring_list_t &lst ) */ static void join_completions( wcstring_list_t lst ) { - long i; - std::map<wcstring, long> desc_table; - for( i=0; i<(long)lst.size(); i++ ) + for( size_t i=0; i<lst.size(); i++ ) { const wchar_t *item = lst.at(i).c_str(); const wchar_t *desc = wcschr( item, COMPLETE_SEP ); |