Module: check_mk
Branch: master
Commit: 1c06cedf2d10cc356c5891f382c5cb88c168d16b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1c06cedf2d10cc…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Aug 9 14:18:00 2016 +0200
Refactoring: Use 'for' instead of 'while' where it makes sense.
This makes the intention much clearer: We do not randomly do things with the
loop variable, we just do some kind of iteration.
---
livestatus/src/ContactgroupsColumn.cc | 10 ++++-----
livestatus/src/CustomTimeperiodColumn.cc | 5 ++---
livestatus/src/CustomVarsExplicitColumn.cc | 5 ++---
livestatus/src/CustomVarsFilter.cc | 4 ++--
livestatus/src/HostgroupsColumn.cc | 8 +++-----
livestatus/src/HostlistColumn.cc | 7 ++-----
livestatus/src/HostlistStateColumn.cc | 15 ++++++--------
livestatus/src/LogEntry.cc | 2 +-
livestatus/src/Logfile.cc | 18 +++++++----------
livestatus/src/OffsetStringMacroColumn.cc | 3 +--
livestatus/src/OutputBuffer.cc | 2 +-
livestatus/src/PerfdataAggregator.cc | 3 +--
livestatus/src/Query.cc | 8 +++-----
livestatus/src/ServiceSpecialDoubleColumn.cc | 5 ++---
livestatus/src/ServicegroupsColumn.cc | 7 +++----
livestatus/src/ServicelistColumn.cc | 13 +++++-------
livestatus/src/ServicelistStateColumn.cc | 5 ++---
livestatus/src/TableContactgroups.cc | 4 +---
livestatus/src/TableContacts.cc | 4 +---
livestatus/src/TableHostgroups.cc | 4 +---
livestatus/src/TableServicegroups.cc | 4 +---
livestatus/src/TableStateHistory.cc | 3 +--
livestatus/src/TableTimeperiods.cc | 4 +---
livestatus/src/TimeperiodsCache.cc | 12 +++--------
livestatus/src/VariadicFilter.cc | 2 +-
livestatus/src/module.cc | 28 +++++++++-----------------
livestatus/src/strutil.cc | 4 ++--
27 files changed, 68 insertions(+), 121 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=1c06cedf2d…