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
Branches
Tags
No related merge requests found
......@@ -91,14 +91,14 @@ void ShellHistory::MoveToPreviousMatch()
void ShellHistory::MoveToNextMatch()
{
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){
index_=newindex;
break;
}
++newindex;
}
if(newindex!=index_){
if(static_cast<unsigned int>(newindex)!=index_){
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