mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-03 20:40:17 -05:00
Replace class B : public A { }; with using B = A; (refactor only)
This commit is contained in:
parent
74ac0183ca
commit
b4192bd80a
4 changed files with 4 additions and 12 deletions
|
|
@ -61,9 +61,7 @@ private:
|
|||
*
|
||||
* @ingroup ido
|
||||
*/
|
||||
class DbTypeRegistry : public Registry<DbType::Ptr>
|
||||
{
|
||||
};
|
||||
using DbTypeRegistry = Registry<DbType::Ptr>;
|
||||
|
||||
/**
|
||||
* Factory function for DbObject-based classes.
|
||||
|
|
|
|||
|
|
@ -45,9 +45,7 @@ private:
|
|||
*
|
||||
* @ingroup remote
|
||||
*/
|
||||
class ApiActionRegistry : public Registry<ApiAction::Ptr>
|
||||
{
|
||||
};
|
||||
using ApiActionRegistry = Registry<ApiAction::Ptr>;
|
||||
|
||||
#define REGISTER_APIACTION(name, types, callback) \
|
||||
INITIALIZE_ONCE([]() { \
|
||||
|
|
|
|||
|
|
@ -47,9 +47,7 @@ private:
|
|||
*
|
||||
* @ingroup base
|
||||
*/
|
||||
class ApiFunctionRegistry : public Registry<ApiFunction::Ptr>
|
||||
{
|
||||
};
|
||||
using ApiFunctionRegistry = Registry<ApiFunction::Ptr>;
|
||||
|
||||
#define REGISTER_APIFUNCTION(name, ns, callback) \
|
||||
INITIALIZE_ONCE([]() { \
|
||||
|
|
|
|||
|
|
@ -59,9 +59,7 @@ private:
|
|||
*
|
||||
* @ingroup base
|
||||
*/
|
||||
class EventQueueRegistry : public Registry<EventQueue::Ptr>
|
||||
{
|
||||
};
|
||||
using EventQueueRegistry = Registry<EventQueue::Ptr>;
|
||||
|
||||
enum class EventType : uint_fast8_t
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue