summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/windows/EditLineWin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/windows/EditLineWin.cpp')
-rw-r--r--lldb/source/Host/windows/EditLineWin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Host/windows/EditLineWin.cpp b/lldb/source/Host/windows/EditLineWin.cpp
index 3e21ff47d56..124104b0006 100644
--- a/lldb/source/Host/windows/EditLineWin.cpp
+++ b/lldb/source/Host/windows/EditLineWin.cpp
@@ -266,8 +266,7 @@ int el_set(EditLine *el, int code, ...) {
const char *name = va_arg(vl, const char *);
- for (int i = 0; i < _bindings.size(); i++) {
- el_binding *bind = _bindings[i];
+ for (auto bind : _bindings) {
if (strcmp(bind->name, name) == 0) {
bind->key = va_arg(vl, const char *);
break;
OpenPOWER on IntegriCloud