Skip to content
Snippets Groups Projects
Commit d5865635 authored by valerio's avatar valerio
Browse files

Fixes to remove some warnings

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2565 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent a4e4b0d4
No related branches found
No related tags found
No related merge requests found
...@@ -91,14 +91,14 @@ void ShellHistory::MoveToPreviousMatch() ...@@ -91,14 +91,14 @@ void ShellHistory::MoveToPreviousMatch()
void ShellHistory::MoveToNextMatch() void ShellHistory::MoveToNextMatch()
{ {
int newindex=index_+1; int newindex=index_+1;
while(newindex<history_list_.size()){ while(static_cast<unsigned int>(newindex)<history_list_.size()){
if(history_list_[newindex].first.indexOf(current_)==0 || current_.size()==0){ if(history_list_[newindex].first.indexOf(current_)==0 || current_.size()==0){
index_=newindex; index_=newindex;
break; break;
} }
++newindex; ++newindex;
} }
if(newindex!=index_){ if(static_cast<unsigned int>(newindex)!=index_){
index_=history_list_.size(); index_=history_list_.size();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment