Address compiler warning
This commit is contained in:
parent
ec6c4c3036
commit
b7b6312184
|
@ -373,7 +373,7 @@ void TreeSearch::_select_previous_match() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// find [selected_idx] among ordered_tree_items
|
// find [selected_idx] among ordered_tree_items
|
||||||
int selected_idx;
|
int selected_idx = 0;
|
||||||
for (int i = ordered_tree_items.size() - 1; i >= 0; i--) {
|
for (int i = ordered_tree_items.size() - 1; i >= 0; i--) {
|
||||||
if (ordered_tree_items[i] == selected) {
|
if (ordered_tree_items[i] == selected) {
|
||||||
selected_idx = i;
|
selected_idx = i;
|
||||||
|
@ -404,7 +404,7 @@ void TreeSearch::_select_next_match() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// find [selected_idx] among ordered_tree_items
|
// find [selected_idx] among ordered_tree_items
|
||||||
int selected_idx;
|
int selected_idx = 0;
|
||||||
for (int i = 0; i < ordered_tree_items.size(); i++) {
|
for (int i = 0; i < ordered_tree_items.size(); i++) {
|
||||||
if (ordered_tree_items[i] == selected) {
|
if (ordered_tree_items[i] == selected) {
|
||||||
selected_idx = i;
|
selected_idx = i;
|
||||||
|
|
Loading…
Reference in New Issue