diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-03-09 14:56:09 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-03-09 16:32:00 -0500 |
commit | 287de65625a667b6403d0606fa75b67926ec7230 (patch) | |
tree | a4911b3dc540ba6a54e0aebbbe972cec6f1d8be1 /gdbsupport/observable.h | |
parent | 2562954ede66f32bff7d985e752b8052c2ae5775 (diff) | |
download | fsf-binutils-gdb-287de65625a667b6403d0606fa75b67926ec7230.zip fsf-binutils-gdb-287de65625a667b6403d0606fa75b67926ec7230.tar.gz fsf-binutils-gdb-287de65625a667b6403d0606fa75b67926ec7230.tar.bz2 |
gdb, gdbserver, gdbsupport: fix whitespace issues
Replace spaces with tabs in a bunch of places.
Change-Id: If0f87180f1d13028dc178e5a8af7882a067868b0
Diffstat (limited to 'gdbsupport/observable.h')
-rw-r--r-- | gdbsupport/observable.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdbsupport/observable.h b/gdbsupport/observable.h index 1a009ef..f1504c8 100644 --- a/gdbsupport/observable.h +++ b/gdbsupport/observable.h @@ -194,14 +194,14 @@ private: for (const token *dep : m_observers[index].dependencies) { /* ... find the observer that has token DEP. If found, visit it. */ - auto it_dep - = std::find_if (m_observers.begin (), m_observers.end (), - [&] (observer o) { return o.token == dep; }); - if (it_dep != m_observers.end ()) - { - int i = std::distance (m_observers.begin (), it_dep); - visit_for_sorting (sorted_observers, visit_states, i); - } + auto it_dep + = std::find_if (m_observers.begin (), m_observers.end (), + [&] (observer o) { return o.token == dep; }); + if (it_dep != m_observers.end ()) + { + int i = std::distance (m_observers.begin (), it_dep); + visit_for_sorting (sorted_observers, visit_states, i); + } } visit_states[index] = detail::visit_state::VISITED; @@ -226,11 +226,11 @@ private: } void attach (const func_type &f, const token *t, const char *name, - const std::vector<const struct token *> &dependencies) + const std::vector<const struct token *> &dependencies) { observer_debug_printf ("Attaching observable %s to observer %s", - name, m_name); + name, m_name); m_observers.emplace_back (t, f, name, dependencies); |