Module: check_mk
Branch: master
Commit: 790a9a0dda574e87fa68820e77ed758d2befecdd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=790a9a0dda574e…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Sep 1 10:51:32 2017 +0200
Const-corrected Table class as far as possible.
Note that Table::answerQuery() is still incorrect regarding const-ness, this
needs to be fixed because it is a sign of real multithreading problems.
Change-Id: Iad5f562e13481c7fc5e62f9c8e0203d3281c0a33
---
livestatus/src/Logfile.cc | 2 +-
livestatus/src/Logfile.h | 6 +++---
livestatus/src/Query.cc | 14 ++++++++------
livestatus/src/Query.h | 28 ++++++++++++++++++----------
livestatus/src/Table.cc | 10 ++++++----
livestatus/src/Table.h | 23 +++++++++++++++++------
livestatus/src/TableComments.cc | 2 +-
livestatus/src/TableComments.h | 2 +-
livestatus/src/TableContactGroups.cc | 2 +-
livestatus/src/TableContactGroups.h | 2 +-
livestatus/src/TableContacts.cc | 2 +-
livestatus/src/TableContacts.h | 2 +-
livestatus/src/TableDowntimes.cc | 2 +-
livestatus/src/TableDowntimes.h | 2 +-
livestatus/src/TableEventConsole.cc | 9 +++++----
livestatus/src/TableEventConsole.h | 11 ++++++-----
livestatus/src/TableEventConsoleEvents.cc | 2 +-
livestatus/src/TableEventConsoleEvents.h | 2 +-
livestatus/src/TableEventConsoleHistory.cc | 2 +-
livestatus/src/TableEventConsoleHistory.h | 2 +-
livestatus/src/TableHostGroups.cc | 4 ++--
livestatus/src/TableHostGroups.h | 4 ++--
livestatus/src/TableHosts.cc | 4 ++--
livestatus/src/TableHosts.h | 4 ++--
livestatus/src/TableHostsByGroup.cc | 4 ++--
livestatus/src/TableHostsByGroup.h | 4 ++--
livestatus/src/TableLog.cc | 4 ++--
livestatus/src/TableLog.h | 4 ++--
livestatus/src/TableServiceGroups.cc | 4 ++--
livestatus/src/TableServiceGroups.h | 4 ++--
livestatus/src/TableServices.cc | 4 ++--
livestatus/src/TableServices.h | 4 ++--
livestatus/src/TableServicesByGroup.cc | 4 ++--
livestatus/src/TableServicesByGroup.h | 4 ++--
livestatus/src/TableServicesByHostGroup.cc | 4 ++--
livestatus/src/TableServicesByHostGroup.h | 4 ++--
livestatus/src/TableStateHistory.cc | 4 ++--
livestatus/src/TableStateHistory.h | 6 +++---
38 files changed, 113 insertions(+), 88 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=790a9a0dda…