Module: check_mk
Branch: master
Commit: f8549085627fdda513ed5267d9a80b0ae2577daf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f8549085627fdd…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Dec 7 22:06:01 2017 +0100
Automatic clang-tidy fix for modernize-use-using.
Change-Id: Ia7de50fb0b3fbeb7df045bd3f383672b75403ed7
---
livestatus/src/HostServiceState.h | 4 ++--
livestatus/src/TableEventConsole.h | 2 +-
livestatus/src/contact_fwd.h | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/livestatus/src/HostServiceState.h b/livestatus/src/HostServiceState.h
index 0782647..88a8b2c 100644
--- a/livestatus/src/HostServiceState.h
+++ b/livestatus/src/HostServiceState.h
@@ -39,9 +39,9 @@ class HostServiceState;
#include "nagios.h"
#endif
-typedef std::vector<HostServiceState *> HostServices;
+using HostServices = std::vector<HostServiceState *>;
-typedef void *HostServiceKey;
+using HostServiceKey = void *;
class HostServiceState {
public:
diff --git a/livestatus/src/TableEventConsole.h b/livestatus/src/TableEventConsole.h
index a333319..3af1d39 100644
--- a/livestatus/src/TableEventConsole.h
+++ b/livestatus/src/TableEventConsole.h
@@ -142,7 +142,7 @@ protected:
};
class ListEventConsoleColumn : public ListColumn {
- typedef std::vector<std::string> _column_t;
+ using _column_t = std::vector<std::string>;
EventConsoleColumn<_column_t> _ecc;
public:
diff --git a/livestatus/src/contact_fwd.h b/livestatus/src/contact_fwd.h
index 3cf0d03..a6a7869 100644
--- a/livestatus/src/contact_fwd.h
+++ b/livestatus/src/contact_fwd.h
@@ -27,11 +27,11 @@
#if defined(CMC)
class Contact;
-typedef Contact contact;
+using contact = Contact;
#elif defined(NAGIOS4)
typedef struct contact contact;
#else
-typedef struct contact_struct contact;
+using contact = struct contact_struct;
#endif
#endif // contact_fwd_h