Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: c824f6b5cdebb2a2780c66e0de1005fd6e2d4656
https://github.com/tribe29/checkmk/commit/c824f6b5cdebb2a2780c66e0de1005fd6…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2022-04-07 (Thu, 07 Apr 2022)
Changed paths:
M livestatus/src/AttributeListColumn.h
M livestatus/src/Query.cc
M livestatus/src/Query.h
M livestatus/src/User.cc
M livestatus/src/User.h
M livestatus/src/test/test_BoolColumn.cc
M livestatus/src/test/test_DictFilter.cc
M livestatus/src/test/test_IntColumn.cc
M livestatus/src/test/test_ListColumn.cc
Log Message:
-----------
Refactoring: Replace conditional with polymorphism.
See:
https://refactoring.com/catalog/replaceConditionalWithPolymorphism.html.
Apart from being more "OO-like", it gets rid of some funny special pointer
values. As an additional bonus, conjuring up a User for testing is easier
now, too.
Change-Id: I7c463e6303d1d363f97facb5095eb362becf807f