Module: check_mk
Branch: master
Commit: 41fe8bb48ee0dd4f42a754866177f8732cc21a41
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=41fe8bb48ee0dd…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Mon Jan 8 13:54:45 2018 +0100
Windows agent: use RAII through std::vector for logfiles
* Do not store manually heap-allocated objects in std::vector as
std::vector already knows how to use the heap (better than you do)
;-)
* Use RAII through std::vector in order to empty SectionLogwatch
destructor.
* Favour std::string for ugly strdup'd heap-allocated char arrays.
Change-Id: I9174163ae8afa874c0e9ab0f3a46ebe6b2de6f66
---
agents/windows/build_version | 2 +-
agents/windows/sections/SectionLogwatch.cc | 515 +++++++++++++----------------
agents/windows/sections/SectionLogwatch.h | 71 ++--
agents/windows/types.h | 36 +-
4 files changed, 300 insertions(+), 324 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=41fe8bb48e…